VBox programming: I have a problem with ISession::Close()

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ramcat
Posts: 1
Joined: 14. May 2009, 23:25
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux

VBox programming: I have a problem with ISession::Close()

Post by ramcat »

Hello everyone,

I am trying to create my own version of a virtualbox frontend on linux using C++ with XPCOM, GTK+ and SDL. I am already able to show VM display on a GtkWindow with keyboard and mouse events. However, my program keeps hanging after calling Session->Close() just after shutting down from the guest OS.

Already tried doing the following:
- dispatching all xpcom events by attaching the nsIEventQueue::ProcessPendingEvents() to the GTK+ main loop (via timeout)
- set every virtualbox components i have used to NULL (IKeyboard, IMouse, IDisplay, IConsole, IFramebuffer, IConsoleCallback)
- including and instantiating ISession from inside the frontend class (previously passed by reference from another class)

Is there a proper clean-up sequence that i need to follow prior to calling ISession::Close()? I checked the SDK & API documentation and was not able to find any leads.

Thanks
Post Reply