Hi,
 
I am writing a stand alone application to access the Firefox Password Manager from outside the browser space. I downloaded the firefox-1.0.3 source and built it.
 
My test program fails in the following line, where I try to get the Password Manager service.
 
nsCOMPtr<nsIPasswordManager> passwordManager = do_GetService(NS_PASSWORDMANAGER_CONTRACTID);
 
The error message I get is :
 
###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with operator->().: 'mRawPtr != 0', file ../../../dist/include/xpcom/nsCOMPtr.h, line 711
Break: at file ../../../dist/include/xpcom/nsCOMPtr.h, line 711
Segmentation fault
 
But this test program worked with Mozilla build but fails with firefox.
I could successfully access some other service like
nsCOMPtr<nsIObserverService> observerService = do_GetService("@mozilla.org/observer-service;1");
 
Could any one help me on this ?
 
Thanks,
Rajaram.
 

Reply via email to