On 08.11.2012 16:55, Jaikumar G wrote: > Folks, > So I am using the SDK Apis to save and restore a snapshot. > > a) If the same thread saves and restores the snapshot, I see that I need > a 20 sec delay between the save and restore (presumably for vbox to > update its data).
The most delay should come from saving the state of the VM (assuming it's running) as part of creating a snapshot, otherwise the snapshot operations should be relatively cheap. Saving the state is essentially linear with the RAM size of the VM. > b) I also see that I need to call com::shutdown() after the save and > com::Initialize() and restart the session, get the console object etc. > Is this needed or am I doing something wrong ? Impossible to tell what you're doing from your description... creating a snapshot leaves the VM running, so it's totally unclear what API calls you do in the mean time. Generally com::Initialize() needs to be called only once and likewise com::Shutdown() only needs to be used after the last API method use when the client application exits. Klaus > Thanks > > > _______________________________________________ > vbox-dev mailing list > [email protected] > https://www.virtualbox.org/mailman/listinfo/vbox-dev -- Oracle <http://www.oracle.com> Dr. Klaus Espenlaub | Software Development Director Phone: +49 7151 60405 205 <tel:+49715160405205> Oracle VM VirtualBox ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt ORACLE Deutschland B.V. & Co. KG Hauptverwaltung: Riesstr. 25, D-80992 München Registergericht: Amtsgericht München, HRA 95603 Geschäftsführer: Jürgen Kunz Komplementärin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher Green Oracle <http://www.oracle.com/commitment> Oracle is committed to developing practices and products that help protect the environment _______________________________________________ vbox-dev mailing list [email protected] https://www.virtualbox.org/mailman/listinfo/vbox-dev
