Per Winkvist wrote:
> I'm passing the result parameter to do_GetService and using NS_SUCCEEDED(rv)
> before using the pointer. That should be sufficient right ?
> It works fine, however every now and then I get a nsDebug::Assertion
> "ASSERTION: new cache entry for READ-ONLY request: '*accessGranted',
> file ...nsCacheEntry, line 233"
Checking the return value is ok. jband it's done both ways in the code,
which is the preferred method? I remember a discussion surrounding this
on IRC, but can't remember the outcome.
As far as the assertion, I've gotten that also. It's most likely not
related to anything you are doing. I think it may have been addressed in
the latest trunk builds, but can't say for sure.