[vbox-dev] VBoxClipboardThread() may never quits, and cause hang sometimes
huisinro at yahoo.com
Mon Jul 26 14:27:53 PDT 2010
I examined a bit more on the rare hanging when saving state.
One message loop that may never quite is
while (GetMessage(&msg, NULL, 0, 0) && !pCtx->fTerminate)
the above while loops depends pCtx->fTerminate to quit, however, GetMessage() may goes to sleep, so never gets to check fTerminate.
The window proc has WM_CLOSE handler, but does nothing, needs to add something like PostQuitMessage(0), which cause GetMessage() to quit.
There might be some other places that have similar problems.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vbox-dev