Re: nsIXULAppInfo failing?
Benjamin Smedberg <[email protected]> Tue, 06 Sep 2011 12:35:46 -0400
| Newsgroups | gmane.comp.mozilla.devel.embedding |
|---|---|
| Message-ID | <[email protected]> |
On 9/6/2011 9:03 AM, Babele Dunnit wrote:
> hi there,
>
> is there any reason for which a line like
>
> nsCOMPtr<nsIXULAppInfo> appInfo = do_GetService("@mozilla.org/xre/app-
> info;1");
>
> should fail giving back a null ptr? everything works, GRE is correctly
> loaded etc.
>
> BTW:
>
> nsCOMPtr<nsIXULRuntime> runtime(do_GetService("@mozilla.org/xre/app-
> info;1"));
>
> works, the "runtime" ptr is not null...
Are you using the same version of the platform and the SDK? This smells
to me like a header mismatch where you're using a different version (and
IID) for nsIXULAppInfo than the platform code which implements it.
--BDs