And this is the relevant output I get from vboxwebsrv.exe -v while debugging that snippet
00:01:11.262 SQW01 Processing connection from IP=127.0.0.1 socket=360 (0 out of 1 threads idle) 00:01:11.277 SQW01 -- entering __vbox__ISnapshot_USCOREgetId 00:01:11.277 SQW01 ManagedObjectRef::findRefFromId(): looking up objref 84 5cf01b9974304a-0000000000000005 00:01:11.277 SQW01 findComPtrFromId(): returning original ISnapshot*=0x395 738 (IUnknown*=0x3A1600) 00:01:11.277 SQW01 calling COM method COMGETTER(Id) 00:01:11.277 SQW01 done calling COM method 00:01:11.277 SQW01 convert COM output "id" back to caller format 00:01:11.293 SQW01 done converting COM output "id" back to caller format 00:01:11.293 SQW01 -- leaving __vbox__ISnapshot_USCOREgetId, rc: 0x0 (0) 00:01:11.293 SQW01 -- entering __vbox__IConsole_USCOREdeleteSnapshot 00:01:11.293 SQW01 ManagedObjectRef::findRefFromId(): looking up objref 84 5cf01b9974304a-0000000000000008 00:01:11.308 SQW01 findComPtrFromId(): returning original IConsole*=0x1CAD 530 (IUnknown*=0x1CAD4A8) 00:01:11.308 SQW01 calling COM method DeleteSnapshot 00:01:11.308 SQW01 done calling COM method 00:01:11.324 SQW01 convert COM output "returnval" back to caller format 00:01:11.324 SQW01 * ManagedObjectRef::ManagedObjectRef: MOR created for I Progress*=0x3925A8 (IUnknown*=0x3A1F00; COM refcount now 3/4), new ID is 9; now 7 objects total 00:01:11.340 SQW01 done converting COM output "returnval" back to caller f ormat 00:01:11.386 SQW01 -- leaving __vbox__IConsole_USCOREdeleteSnapshot, rc: 0x0 (0) --- On Sat, 11/6/11, wac <[email protected]> wrote: > From: wac <[email protected]> > Subject: [vbox-dev] programatically deleting snapshots > To: [email protected] > Date: Saturday, 11 June, 2011, 17:41 > Hi: > > I am trying to handle snapshots for a virtual machine using > the java API and I found that it creates them properly but > when I try to delete them virtualbox ends up ignoring the > command without even throwing an exception. I am doing this > with the webserver interface for 64 bits virtualbox. I tried > with both the VM turned on and off. Turned on can't create > snapshots. Turned off does crate new ones but doesn't > deletes them. > > This is the code snippet I am using: > > IProgress p; > ISnapshot snap = m.findSnapshot("update snapshot"); > p = console.deleteSnapshot(snap.getId()); > p.waitForCompletion(-1); > p.releaseRemote(); > snap.releaseRemote(); > > Any help or guide will be appreciated. > > Regards > Waldo > > _______________________________________________ > vbox-dev mailing list > [email protected] > http://vbox.innotek.de/mailman/listinfo/vbox-dev > _______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
