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 ....).

-- 
B�atrice Philippe

[EMAIL PROTECTED]
"Darin Fisher" <[EMAIL PROTECTED]> a �crit dans le message de
news:[EMAIL PROTECTED]
> Nicolas Weber wrote:
>
> >> How are you allocating them?  nsString is just a class.  If you
allocate
> >> an instance with operator new, then you will need to use operator free
> >> to destroy the instance.
> >
> >
> > You intended to write "operator delete" instead of "operator free" (?).
> >
> > - Nico
>
>
> Nico, yeah... I meant "operator delete" instead.  Please excuse the
> typo! ;-)
>
> -Darin


_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to