Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Thread Manager FF 3

3 views
Skip to first unread message

João Silva

unread,
Jun 4, 2012, 9:42:08 AM6/4/12
to
Hi,

I'm unable to initiate the thread manager service on FF 3.6 using SDK
12. Calling:

nsCOMPtr<nsIThreadManager> tm =
do_GetService(NS_THREADMANAGER_CONTRACTID);

returns NS_ERROR_NO_INTERFACE !

Does anybody know why? All these thread utilities related interfaces
exist since Gecko 1.9 (FF 3). It works on FF 12, but I need to keep
compatibility with +3.0 versions.

Cheers,
João

Benjamin Smedberg

unread,
Jun 4, 2012, 10:24:30 AM6/4/12
to João Silva, dev-ext...@lists.mozilla.org
The Gecko SDK is not designed to support multiple versions of Firefox.
Beginning with Firefox 4, you must recompile binaries for each release
using the Gecko SDK for that release.

--BDS

João Silva

unread,
Jun 5, 2012, 11:09:39 AM6/5/12
to
I tried to use the same code now with sdk 2.0 in Firefox 3.6 butit
doesn't work either, can please somebody give me a hand with this? :\

Code:
nsresult res;
nsCOMPtr<nsIThreadManager> tm =
do_GetService(NS_THREADMANAGER_CONTRACTID, &res);

if(tm != NULL){
nsresult rv = tm->NewThread(0, 0, getter_AddRefs(mythread));
if (NS_FAILED(rv)) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIRunnable> r = new GetStartupSettingsTask(&core,
callback);
mythread->Dispatch(r, 0);
}


It fails on the conditional statement, as tm is initiated. res gets
the status code 2147500034 (NS_ERROR_NO_INTERFACE) The question is
why? Before I was using sdk 11.0 and 12.0, but now I'm using 2.0, can
somebody tell me what is the problem here? I can't find a working
solution... I've tried to include multiple versions of interfaces but
without success.

Cheers,
João

0 new messages