I would see if you can use the app with as little interaction as
possible.  If you've made your app "accessible" then you can use the
keyboard and skip using the mouse to execute the sequence in question
(loading some page several times then using forceGC()).

 

If that succeeds in reproducing the problem, I would take memory
snapshots after loading the page and then another snapshot if you can
get a forceGC() to not crash the player and see what is going away and
take a closer look at those things.

 

Also, how are you loading the SWFs?  Maybe you've lost your hard
reference to the SWF so they get collected when you don't want.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Mathews
Sent: Tuesday, November 06, 2007 10:22 AM
To: [email protected]
Subject: Re: [flexcoders] Player crash on GC

 

Thanks for the idea Alex. I just finished looking through my code and
can't find anything to indicate something should be available for GC
before all listeners are cleaned up.

 

The really confusing thing is that all the pieces of this system worked
just fine before I started my "overhaul" of it. The changes I made were
mainly in navigation (page to page) and some minor tweaks here and
there. I just can't figure out how the changes I made could have gotten
me to this spot. 

 

Any other ideas, theories or shots in the dark that I could look at? I
am running out of ideas myself at this point.

 

Thanks.

 

On 11/5/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote: 

Some version of the player used to crash when display objects that had
rollover handlers under the mouse were removed and GC'd.  I do not know
the status of the fix.  The workaround was to place a "shield" between
the mouse and the display objects before removing them. 

 

In general, I would not remove objects such that they can get GC'd until
any listeners they might have were removed.  I would not suspect
getDefinition. 

 

________________________________

From: [email protected] <mailto:[email protected]>
[mailto:[email protected] <mailto:[email protected]> ]
On Behalf Of Steve Mathews
Sent: Monday, November 05, 2007 3:46 PM
To: [email protected] <mailto:[email protected]> 
Subject: [flexcoders] Player crash on GC

 

I have run into a roadblock that I can't seem to figure out.

I have an application that creates and displays a presentation (think
PowerPoint). During an overhaul of the code the player started 
crashing. It seems to be related to garbage collection in some way as
I can display the exact same page a few times in a row then it will
crash say on the fourth time. Or using FB3 I can click the Force GC
button after a few pages and the player will crash also. 

One area of concern is that these pages contain "components" which are
just swf's with a class in them. I use getDefinition to instantiate
the class. Although this has worked quite well up till this point, I 
worry that this is now part of the problem.

Has anyone seen any issues with getDefinition or GC crashing the player?

Thanks.

 

 

Reply via email to