στις 14/4/2010 16:42, O/H Benjamin Smedberg έγραψε:
On 4/14/10 9:31 AM, Georgios Petasis wrote:

Does Mozilla assumes that has the control of the main thread?
(And wants to run a message loop on it?)

Mozilla assumes that there is a message loop on the main thread, yes. There are slight differences between whether we spin our own event loop (using nsIAppStartup.run or nsIAppShell.run), or whether the embedder does it for us, but in either case gecko can't function without an event loop.

--BDS

I have written some C++ code, which interfaces Mozilla with Tcl/Tk.
Tcl/Tk is the owner of the "main" thread, and runs a message loop on it.
My code somewhat works: I can start Mozilla, load a few pages (~10), and then everything locks. :-)

I still have no solution why. At some point, I will call a function from Mozilla, that will never return.
Killing the app is the only solution. Any ideas welcomed :-)

(It is an open-source project, code here: http://sourceforge.net/projects/tkgecko/)

George
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to