I've recently updated an app that was happily running in the NS_InitEmbedding world for several years. Everything seems to be running fine-- in fact the app can be so fond of running that it won't stop. Sometimes the WM_QUIT message gets eaten by AppShell and the now invisible app is still running, thus preventing users from restarting. This seems to happen when shutting down while the browser is busy. If I quit when things are quiet, things shut down just fine.
I built Winembed and was able to reproduce this behavior by hitting the close button while the browser was loading a large page. If I try to Terminate Embedding before 'PostQuitmessage' I get similar behavior: it succeeds when not busy, but fails (a crash this time) when busy. The crash is preferable to a lock up but still... BTW, I think the crash happens when nsAppShell doesn't close (a high refcount just gets decremented) with the rest of its friends and it tries to handle a message involving code that is no longer around. Any ideas? _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
