Re: [flexcoders] Re: delete class instances

2006-05-16 Thread Darren Houle
This may have already been answered somewhere, but I've searched and if it's out there it's not really obvious... I am pulling data from a CFC and displaying it in a DataGrid.  When I click on a grid header to sort and there's a blank first row in that column I get: Error: Cannot determine c

Re: [flexcoders] Re: delete class instances

2006-05-16 Thread michael . corbridge
t;[EMAIL PROTECTED]>   cc: Sent by:          Subject:  Re: [flexcoders] Re: delete class instances      

RE: [flexcoders] Re: delete class instances

2006-05-16 Thread Dirk Eismann
An: flexcoders@yahoogroups.com Betreff: Re: [flexcoders] Re: delete class instances Thank you for your swift answers, but either I just don't get it, or it's not working. I've changed the function stopPing to the following: private function stopPing():void {     ping = null;     trace

[flexcoders] Re: delete class instances

2006-05-16 Thread Tim Hoff
I'm not sure, but you might need to stop the timer and remove the eventListener before you set ping to null.  The references may be preventing the class from being available for garbageCollection. TH --- In flexcoders@yahoogroups.com, "Sonja Duijvesteijn" <[EMAIL PROTECTED]> wrote: > > Tha

Re: [flexcoders] Re: delete class instances

2006-05-16 Thread Sonja Duijvesteijn
Thank you for your swift answers, but either I just don't get it, or it's not working. I've changed the function stopPing to the following: private function stopPing():void {    ping = null;        trace("ping: " +ping); }The trace does say (as expected) "ping: null", but it doesn't make the bad

[flexcoders] Re: delete class instances

2006-05-16 Thread Tim Hoff
ll (in removePing(), if you prefer). > >  > > Francis > >  > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Tim Hoff > Sent: Tuesday, May 16, 2006 12:05 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: delete

RE: [flexcoders] Re: delete class instances

2006-05-16 Thread Francis Cheng
: [flexcoders] Re: delete class instances   Make the bad ping go away!  ;) If you are instantiating the class: import PingClass; public var myPingClass : PingClass = new PingClass; I believe that you can either set it to null: myPingClass = null; or delete it: delete myPingClass; -TH

[flexcoders] Re: delete class instances

2006-05-16 Thread Tim Hoff
Make the bad ping go away!  ;) If you are instantiating the class: import PingClass; public var myPingClass : PingClass = new PingClass; I believe that you can either set it to null: myPingClass = null; or delete it: delete myPingClass; -TH--- In flexcoders@yahoogroups.com, "Sonja Duijvesteijn"