nsIXULAppInfo failing?
Babele Dunnit <[email protected]> Tue, 6 Sep 2011 06:03:03 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.embedding |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <da287642-4667-4a04-9bcd-2c82ccd75c14@w28g2000yqw.googlegroups.com> |
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...
usual stupid things like moving the code around and using the form
nsCOMPtr<nsIXULAppInfo> appinfo(do_GetService("@mozilla.org/xre/app-
info;1"));
instead of the assignment are useless.
any advice??
(building/embedding under Windows, gecko 2.0)
thx
Aaron