I have already tried to use the nsIServiceManager::GetService() method using the CID {0xedb0490e, 0x1dd1 , 0x11b2, {0x83, 0xb8, 0xdb, 0xf8 , 0xd8, 0x59, 0x06, 0xa6}}. But unfortunately the there were no improvements....
 
I 've tried this on FireFox 1.0.7 and on the latest 1.5.  Gecko versions are 1.0.1 and 1.7.5 respectively....     Can anyone help me with this issue?
 
Thank you very much in advance for your attention
 
Oliveiros
----- Original Message -----
Sent: Friday, January 13, 2006 5:43 PM
Subject: Failure to obtain the download manager component

 Hello All,
 
 I am trying to obtain a pointer to the dowload manager component, but the nsIServiceManager::GetServiceByContractId()  method  simply causes an access violation when I call it this way :
 
 unRetVal = spiServManager -> GetServiceByContractID("@mozilla.org/download-manager;1",
                                                     NS_GET_IID(nsIDownloadManager),
                                                     getter_AddRefs(spiGestorDownload));
 
 
 
I have already tried to call it this way
 
 unRetVal = spiServManager -> GetServiceByContractID("@mozilla.org/download-manager;1",
                                                     NS_GET_IID(nsISupports),
                                                     getter_AddRefs(spiGestorDownload));
 
but the result was precisely the same :(
 
Is the ContractId wrong ? But even so , the method should report failure and not causing an access violation
 
Has anyone already experienced this strange behavior?
Can anyone kindly give me a help with this issue, please?
 
Thank you very much in advance
 
Oliveiros

Reply via email to