Hi,

My aim is to set an url in the address bar, after mozilla browser is
launched successfully. I tried this piece of code in my component,

nsCOMPtr<nsIWindowWatcher> windowWatcher =
do_GetService(NS_WINDOWWATCHER_CONTRACTID, &rv);

nsCOMPtr<nsIDOMWindow> newWindow;

char* urlstr = "http://arc-server/";;
windowWatcher->OpenWindow(0,urlstr,"_blank","chrome,dialog=no,all",nsnull,getter_AddRefs(newWindow);

Following runtime error was thrown 


###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with
operator->().: 'mRawPtr != 0', file
../../../dist/include/xpcom/nsCOMPtr.h, line 691
Break: at file ../../../dist/include/xpcom/nsCOMPtr.h, line 691
 
Program ./mozilla-bin (pid = 5679) received Segmentation fault signal.
Stack:
nsProfileLock::FatalSignalHandler(int)+0x000000CC
[/home/sathish/thirdpartyproduct/webclient/mozilla/dist/bin/components/libprofile.so
+0x00033126]
UNKNOWN [/lib/tls/libpthread.so.0 +0x00009568]
nsHttpConnection::OnTransportStatus(nsITransport*, unsigned, unsigned,
unsigned)+0x0000002D
[/home/sathish/thirdpartyproduct/webclient/mozilla/dist/bin/components/libnecko.so
+0x00147DB1]


Any help in this regard is highly appreciated. Thanks in Advance.

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

Reply via email to