Opened 11 years ago
Closed 11 years ago
#12060 closed task (invalid)
Unregister function fails
Reported by: | MVS | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.2.16 |
Keywords: | Remove VM | Cc: | |
Guest type: | all | Host type: | all |
Description
Hi sir,
I am automating create machine, booting by attaching vhd or vmdk and taking snapshot. Now i wanna remove the created vm and related backup files as well from the my machine
API I am using :: VirtualBoxSDK-4.2.16-86992 Platform :: Windows7 and Windows 2008 R2 Language :: C++
I have created machine using CreateMachine() function, I can able to create machine, start machine after that following issue troubling me alot
In my VirtualBox.h header file Unregister() and delete() function definitions are as follows.
virtual HRESULT STDMETHODCALLTYPE Unregister( /* [in] */ CleanupMode aCleanupMode, /* [retval][out] */ SAFEARRAY * *aAMedia) = 0;
virtual HRESULT STDMETHODCALLTYPE Delete( /* [in] */ SAFEARRAY * aAMedia, /* [retval][out] */ IProgress aAProgress) = 0;
In my c++ file iam using functions like this
SAFEARRAY * *aAMedia = NULL;
machine->Unregister(CleanupMode_UnregisterOnly , aAMedia); machine->Delete(*aAMedia, &progress);
Here "Unregister()" not returning proper value for "aAMedia" . When iam trying to use the same "aAMedia" in my delete() function as input argument value function fails
Please help me to solve these issue
Regard's MVS
Change History (2)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Such questions are better suited for the forums anyway.
I have completed of my own close this task