Kk, thank you. If i do the following operation : d = mAllocCount - mFreeCount (2009 = 22143 - 20154); does it means that 2009 sharable string buffers were not freed ?
The problem is that i don't know if, when i load a webpage, i can have a lot of memory space in the thread for my application. When i try to load many webpages (one by one), my application crashes (memory problem in "during the "startLoad()" call in gecko). So i try to release as many buffers as possible. Or is there any option to request a thread safe, or more memory for running an embedding application ? -- B�atrice Philippe [EMAIL PROTECTED] "Darin Fisher" <[EMAIL PROTECTED]> a �crit dans le message de news:[EMAIL PROTECTED] > Mozilla.embedding wrote: > > >Hello ! > >i'm trying to release most of my variables at right time in my program when > >i don't need them anymore. > >I'd like to know if memory is really free after the web page is loaded and > >before loading another one (should i have to release nsString ? PRUint32 ?). > >When my application stops, i have this following message and i'd like to > >understand what it means: > >" Chrome destroyed... end > >nsStringStats > > => mAllocCount: 22143 > > => mReallocCount: 3710 > > => mFreeCount: 20154 > > => mShareCount: 17855 > > => mAdoptCount: 2973 > > => mAdoptFreeCount: 2831" > > > >Can anyone help me to understand ? > > > >Thanks a lot. > > > > > > mAllocCount > The number of "heap allocated, sharable string buffers" > mReallocCount > The number of "heap allocated, sharable string buffers" that were > reallocated > mFreeCount > The number of "heap allocated, sharable string buffers" that were freed > mShareCount > The number of "heap allocated, sharable string buffers" that were shared > mAdoptCount > The number of "heap allocated, non-sharable string buffers" that > were subsumed > mAdoptFreeCount > The number of "heap allocated, non-sharable string buffers" that > were freed > > So, what does that mean? Well, mAllocCount - mFreeCount gives you > the number "heap allocated, sharable string buffers" that were leaked. > And, mAdoptCount - mAdoptFreeCount gives you the number of "heap > allocated, non-sharable string buffers" that were leaked. > > -Darin > _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
