Hi, When I try to create an nsITimer timer object in my XPCOM component it fails with a return value of NS_ERROR_NO_INTERFACE. I'm using Firefox 1.5. The code snippet below is how I'm creating the timer. I'm using gecko sdk 1.8b1. The nsITimer header was created from the nsITimer IDL that I got from the Mozilla 1.81b source. Previously this code had worked when compiled against gecko 1.7.5 and executed by Firefox 1.0.2! Any ideas what's wrong? Cheers, Damien
// Create our timer nsCOMPtr<nsIComponentManager> compMgr; rv = NS_GetComponentManager(getter_AddRefs(compMgr)); if (NS_FAILED(rv)) return; rv = compMgr->CreateInstanceByContractID(NS_TIMER_CONTRACTID, nsnull, NS_GET_IID(nsITimer), (void**)getter_AddRefs(m_timer)); if (NS_FAILED(rv)) return; _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
