Sorry for this too short question. sRule is an nsCOMPtr nsIStyleRule object. i've just tried another way to get the StyleSheet of a rule: i do : "nsICssRule* aCssRule = do_queryInterface(sRule); aCssRule->GetStyleSheet (....);" and it doesn't crash anymore. But i still wonder why ?
-- B�atrice Philippe [EMAIL PROTECTED] "Boris Zbarsky" <[EMAIL PROTECTED]> a �crit dans le message de news:[EMAIL PROTECTED] B�atrice Philippe wrote: > when i try to load several web pages, > this statement seems not to be safe (it crashes when the 2nd and others > pages loaded ask perform this statement) : > "sRule->GetStyleSheet(*getter_AddRefs(aStyleSheet));" > > Why ? Where does it crash? What's sRule? Is aStyleSheet an nsCOMPtr? In brief, we can't read you mind or your code, so you'll need to provide a lot more information if you want a reasonable answer... -Boris _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
