I accidentally created a second instance of the EventQueue sevice and received no error (rv == 0). Shouldn't this cause an error? It resulted in a messed up event pump and it was hard to debug. The symptom was that proxy objects failed to work. Wrong: rv = compMan->CreateInstanceByContractID(NS_EVENTQUEUESERVICE_CONTRACTID, nsnull, NS_GET_IID(nsIEventQueueService), getter_AddRefs(eqs)); I meant to do this: rv = servMan->GetServiceByContractID(NS_EVENTQUEUESERVICE_CONTRACTID, NS_GET_IID(nsIEventQueueService), getter_AddRefs(eqs));
Yes, it is a bug. However, note that my patch for bug 326273 eliminates nsEventQueueService.
Depends on: 326273
Well, it shouldn't be considered a bug in the EQS: this code is buggy since you should be using getservice, not createinstance. EQS doesn't keep a static "gInstance" or anything like that.
Status: NEW → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.