Changeset 31333 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- Aug 3, 2010 1:00:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstOVF.cpp
r30956 r31333 349 349 350 350 RTPrintf(" Deleting machine %ls...\n", bstrUUID.raw()); 351 Safe Array<BSTR> sfaFiles;352 rc = pMachine->Unregister( true /* fDetachMedia */,353 ComSafeArrayAsOutParam(sfa Files));351 SafeIfaceArray<IMedium> sfaMedia; 352 rc = pMachine->Unregister(CleanupMode_DetachAllReturnHardDisksOnly, 353 ComSafeArrayAsOutParam(sfaMedia)); 354 354 if (FAILED(rc)) throw MyError(rc, "Machine::Unregister() failed\n"); 355 355 356 for (size_t u = 0; 357 u < sfaFiles.size(); 358 ++u) 359 { 360 RTPrintf(" UnregisterMachine reported disk image %ls\n", sfaFiles[u]); 361 llFiles2Delete.push_back(sfaFiles[u]); 362 } 363 364 rc = pMachine->Delete(); 356 ComPtr<IProgress> pProgress; 357 rc = pMachine->Delete(ComSafeArrayAsInParam(sfaMedia), pProgress.asOutParam()); 365 358 if (FAILED(rc)) throw MyError(rc, "Machine::DeleteSettings() failed\n"); 359 rc = pProgress->WaitForCompletion(-1); 360 if (FAILED(rc)) throw MyError(rc, "Progress::WaitForCompletion() failed\n"); 366 361 } 367 362 }
Note:
See TracChangeset
for help on using the changeset viewer.