[EMAIL PROTECTED] wrote: > Hello, > > I have a written a small web browser based on gtkembedmoz that was > working fine with firefox-2. Then I have switched to firefox-3 and I > have noticed that i have to use GRE_GetGREPathWithProperties, > XPCOMGlueStartup and GTKEmbedGlueStartup to make it usable again with > xulrunner-1.9. It works also fine except it spends a lot of time at > start-up loading the required libraries. According to this webpage :
Can you be specific about where the time is being spent? Loading libraries can be expensive no matter what. Is it possible that the delay is just more noticable to you because rather than taking the hit at startup (the dynamic loader links the libraries before calling main()) the load happens during execution of your program where it's more apparent? > http://developer.mozilla.org/en/XPCOM_Glue#Frozen_linkage.3a_dependent_glue_(dependent_on_xpcom.dll) > > "Embedding code which wishes to use only frozen symbols and cannot > tolerate a load-time dependency on xpcom.dll should #define XPCOM_GLUE > 1 while compiling, and link against xpcomglue.lib. It should not link > against xpcomglue_s.lib or xpcom.lib" > > I have tried it, I do not call XPCOMGlueStartup and > GTKEmbedGlueStartup any more, but my browser gives me a sigsev as > soon as I call gtk_moz_embed_set_path. I think I'm lacking an init or > something... You're lacking XPCOMGlueStartup/GTKEmbedGlueStartup. I don't understand why you removed them, since they are the code which initializes everything. --BDS _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding