problem with embedding

topknot <[email protected]> Fri, 30 Dec 2011 09:24:14 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.embedding
Organization http://groups.google.com
Message-ID <fbe6ca26-4954-49fd-a0bb-c932e47b54c5@p16g2000yqd.googlegroups.com>
Hello,
I'm trying to embed Gecko into my linux application. So far have
problem with creation of nsWebBrowser instance:
webBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &rv);
it always return 0xc1f30001 (which means NOT_INITIALIZED).

but I did initialization after winEmbed code:
getting of paths for binaries and then for
XRE_LockProfileDirectory
XRE_InitEmbedding2
XRE_NotifyProfile

also in console (with debug build) I can see a lot of strings like:
WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /
home/snv/mozilla-8.0.1/xpcom/base/nsTraceRefcntImpl.cpp, line 172

and calling of XRE_InitEmbedding2 print into console:

###!!! ASSERTION: This is not supposed to fail!: 'Error', file /home/
snv/mozilla-8.0.1/js/src/xpconnect/src/nsXPConnect.cpp, line 984
###!!! ASSERTION: Failed to initialize nsScriptSecurityManager:
'NS_SUCCEEDED(rv)', file /home/snv/mozilla-8.0.1/caps/src/
nsScriptSecurityManager.cpp, line 3455

need help in fixing the issues. thanks.