This morning while browsing I noticed this message about scope. http://groups.google.com/group/mozilla.dev.embedding/browse_thread/thread/4061a9fd077316b8/fc3b43cb2ad20677?lnk=gst&q=nsIPrintSettings#fc3b43cb2ad20677
I had thought that all nsCOMPtr references were automatically de- referenced once they go out of scope. So the following within a method will orphan settings when said method is exited? Does everyone trust the GC'ing or are they setting the reference to 0 explicitly? nsCOMPtr<nsIPrintSettings> settings; printing->GetGlobalPrintSettings((nsIPrintSettings**)&settings); Thanks PS Those google validation characters are ridiculous!!! _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
