Use any of them, you don't need to use both. browsers manage memory themselves (
mostly ).
Stephan Tolksdorf wrote:
> >> When should one use object = null and when should one use delete
> >> object? Just curious...
>
> > both:
> > delete MyObject; // clears the contents of the object
> > MyObject = null; // clears the reference to the object, allowing garbage
> > collection to do the rest
>
> Thanks for your answer but I'm not certain what you meant.
> Do you mean "both" consecutivly?
>
> After "delete MyObject" MyObject is totally undefined. Should I
> redefine it by assigning null?
>
> Stephan
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev