In case anyone is interested, I think I've solved my problem of Mozilla
hanging when it is embedded dynamically in response to some GUI event
in a GTK+ app that uses the wxWindows library.

Basically, in the wxWindows initialisation code, they grab the Glib lock
and don't relinquish it, presumably on the assumption that all
interaction with GTK is via their interfaces.  However, throwing Mozilla
into the mix resulted in a deadlock when the Mozilla widget was being
realized.

While I'm sure there's other surprises waiting for me, at least the
basics appear to be working for me now.  Many thanks in particular
to Ari Heitner and Maher Awamy for advice and clues that got me looking
in the right direction.  I had narrowed the problem down to a simple
wxWindows app which I was preparing to post when I diagnosed enough of
the real problem to find the solution.

Cheers,

    Bernie

> -----Original Message-----
> From: Bernie Maier [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 3:01 PM
[...]
> However, in my tests it appears that the only examples I have of
> successfully embedding Mozilla is when I can gtk_moz_embed_new()
> before I hit the gtk_main event loop.  Does anyone know if it is
> possible to successfully embed Mozilla once the loop is running?
> If so, how?  Every time I've tried, it hangs.  The debug output
> stops at:
> 
>     GFX: dpi=96 t2p=0.0666667 p2t=15 depth=24
>     WEBSHELL+ = 1

Reply via email to