B�atrice Philippe wrote:
Ok, thank you very much for your help.
I'll think about allocating more static variables. "delete" is used with "new" objects, but i still wonder when we should use "free()" and "nsMemory::Free() functions (i thought i understood the documentation but ....).
If you are calling a function that returns |string| or |wstring|, then you will
need to call nsMemory::Free to release the result when you are finished
with it. If you are calling a function that returns |ACString|, |AUTF8String|,
or |AString|. then you will be using one of the strings classes such as
nsString to capture the result. In that case, you do not need to take care of
free'ing the result. It will happen when the nsString instance goes out of
scope.
Please see the string guide (http://www.mozilla.org/projects/xpcom/string-guide.html)
for more info.
-Darin _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
