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

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to