hi
thanks for answers to my previous question. but i still got have a
problem.
for the code part

        XPCOMGlueStartup(nsnull);
        nsCOMPtr<nsIPref> pref = do_CreateInstance(NS_PREF_CONTRACTID);
        if (pref)
        {
                ...
                ...
                ...
                
        }
        XPCOMGlueShutdown();
with linker flags -lxpcom -lxpcomglue -lembedstring -lplds4 -lplc4
-lnspr4 -lgtksuperwin
i can compile and link the program but when i run program it gives me
segmentation fault(no more,no less). i found it is appearing when i use
GlueStartup function and deleted it but this time it gave on
do_CreateInstance function. i read that i should not use xpcom and
xpcomglue libs together (is it true?) but when i do not add xpcom lib it
is giving me error on gtk_moz_embed functions.(also when i put xpcom
after xpcomglue --like-- -lxpcomglue -lxpcom)

with this problems i want to ask one more thing;

i looked at galeon's and skipstone's codes and saw that they do not use
xpcomglue for linking the same code. but when i use nsCOMPtr i'm having
to use xpcomglue.. 
what is the difference? i tried it at mozilla-1.2.1 and mozilla-1.5b
devel packages and also with mozilla-1.4 tarball...

thanks
-- 
Goktan Kantarcioglu
Ideal Teknoloji Bilisim ÃÃzÃmleri A.S.- Iliskisel Is Kanali
ARGE ve Projeler Yazilim GeliÅtirme Muhendisi
[EMAIL PROTECTED]
http://www.idealteknoloji.com

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to