Closed GoogleCodeExporter closed 9 years ago
Seems to be related to this issue.
http://code.google.com/p/chromium/issues/detail?id=102161
Original comment by krasshir...@googlemail.com
on 30 Jan 2012 at 7:21
The more immediate problem based on your call stack seems to be that you're not
calling CefShutdown().
Original comment by magreenb...@gmail.com
on 30 Jan 2012 at 7:24
Now that you mentioned it.
It did not occur to me since I found it to be implied by the code below that
shutdown will be called after the my message loop ends. It seems however, that
the error occurs before the loop actually ends, any insights ?
It works as expected on Windows, I guess there must be a subtle difference on a
mac when closing the window.
public static void Run() {
NativeMethods.RunMessageLoop(); // maps to cef_run_message_loop.
Shutdown();
}
public static void Shutdown() {
if (!IsInitialized) {
Debug.WriteLine("Framework not initialized.");
return;
}
ReleasePool.ReleaseAll();
NativeMethods.Shutdown(); // maps to cef_shutdown
IsInitialized = false;
}
Original comment by krasshir...@googlemail.com
on 31 Jan 2012 at 10:31
[deleted comment]
I checked the cefclient and in it you call cef_shutdown inside the
applicationWillTerminate method. After doing the same the issue has been
resolved, it seems quitting the application on a mac doesn't seem to just break
the message loop as it does on windows. Code after the run method on a mac will
probably never be executed :(
Original comment by krasshir...@googlemail.com
on 31 Jan 2012 at 5:43
That's correct, CefRunMessageLoop() will never exit in a Mac application. See
comment #4 for issue 443.
Original comment by magreenb...@gmail.com
on 31 Jan 2012 at 6:13
Original issue reported on code.google.com by
krasshir...@googlemail.com
on 29 Jan 2012 at 2:26