That's possible too.  A request to load a module and get events from the
module do not constitute a hard-reference to the module, making it
eligible for GC.  If you use ModuleLoader, it will keep a hard
reference, otherwise, put an instance variable in the class that loads
it (and don't forget to null it when you no longer need the module).

 

creationComplete only fires once, but if you instantiate the view twice,
that can cause problems.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Doberenz
Sent: Thursday, June 12, 2008 11:04 AM
To: [email protected]
Subject: Re: [flexcoders] Re: Modules not loading in some browsers! Why?

 

It also may be that you're not making a hard link to the module and it's
getting garbage collected before you're doing anything with it.

I don't remember exactly the details, but I had an issue with modules
sometimes loading and sometimes not loading between compiles of my app.
Once I added a hard reference to the module once it was loaded, that
went away.

The garbage collection could play differently between browsers which is
why the modules get garbage collected in some browsers and not others.
There could be a better way of saying that.  It's not that the garbage
collector behaves differently, but some browsers might have a larger
overhead than others and so the GC may get rid of stuff differently.

Mark



On Thu, Jun 12, 2008 at 12:46 PM, mellomike07 <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

Thanks for the response Alex!

How can I test if multiple request are being made? Because in my code
I'm only calling the 
module to load once.

But one thing I should mention is that the module is being loaded inside
a 
creationComplete event handler of a view component.

Could it be that this creationComplete event is being fired more than
once? if so, how can 
I prevent this? Thanks!!!



--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Most common issue has been multiple open requests for the same module
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of mellomike07
> Sent: Thursday, June 12, 2008 8:36 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Modules not loading in some browsers! Why?
> 
> 
> 
> Hello,
> 
> My problem has to do with modules showing up in some browsers
> sometimes... and not 
> showing up other times in other browsers. To fix the problem I have to
> refresh the page so 
> the Flex application will reload.
> 
> I always make sure the empty my cache before trying... There are some
> times when the 
> modules load fine.... what could be the problem??
>

 

 

Reply via email to