For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > April 2004 > using DESTROY statement









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author using DESTROY statement
Mark

2004-04-20, 1:41 pm

I heard that that the DESTROY statement in Powerbuilder 8.0 is
obsolete.

If you create a datastore/or nvo locally, the garbage collection will
automatically handle it. Is this correct?

I'm using PB 8.0 with an XP machine, 256mg, 40 gig HD.

Thanks
Jim Douglas

2004-04-20, 7:36 pm

Right, and the checks in the mail and I won't ........, well you already
know that one. It probably will eventually be cleaned up but why wait, you
should always destroy what you create.

"Mark" <Markie_2230@yahoo.com> wrote in message
news:a42b9926.0404200417.2d90611b@posting.google.com...
> I heard that that the DESTROY statement in Powerbuilder 8.0 is
> obsolete.
>
> If you create a datastore/or nvo locally, the garbage collection will
> automatically handle it. Is this correct?
>
> I'm using PB 8.0 with an XP machine, 256mg, 40 gig HD.
>
> Thanks



Philip Salgannik

2004-04-20, 10:32 pm

That is partially correct.
DESTROY is NOT obsolete.
Locally created classes WILL be garbage collected when they go out of scope.

--
__
"Mark" <Markie_2230@yahoo.com> wrote in message
news:a42b9926.0404200417.2d90611b@posting.google.com...
> I heard that that the DESTROY statement in Powerbuilder 8.0 is
> obsolete.
>
> If you create a datastore/or nvo locally, the garbage collection will
> automatically handle it. Is this correct?
>
> I'm using PB 8.0 with an XP machine, 256mg, 40 gig HD.
>
> Thanks



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com