You often will not find the offending code in your own source though.  Sometimes it is in the way the flex compiler generates the underlying AS classes.

 

This has been thoroughly discussed, but here are a few pointers:

  • mxml files with large amounts of UI code PLUS moderate amounts of AS code are a problem
  • Putting AS code into a file included with mx:Script source-“” does NOT help
  • Putting AS code in a class helps a lot.
  • If your app is fairly well “refactored” or modularized already, try adding some more code, even if it is bogus.  This can trick the flex compiler into breaking your code into smaller bits, thereby avoiding the problem.
  • Run the app with debug=true.  This causes debug code to be added to the generated code, and if you can then compile an run, you almost certainly have the boundary issue noted above.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of Abdul Qabiz
Sent: Tuesday, May 17, 2005 2:07 AM
To: [email protected]
Subject: RE: [flexcoders] Question about error message

 

Hi,

 

you get this error message when you have more than 32KB code in a block. For example:

 

if(..)

{

 

    //more than 32 kb code

}

 

 

function foo()

{

    //32 KB code

}

 

 

similarly in other types of blocks..

 

Try to refactor your code... Search the archives of this list for related discussion...

 

-abdul

 


From: [email protected] [mailto:[email protected]] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 10:26 AM
To: [email protected]
Subject: [flexcoders] Question about error message

Ok I was writing a rather large mxml file one that is about 62KB, its never given me any problems with the amount of memory before and I actually removed like about a few hundred lines of code to make the application smaller. So what has me so confused is why am I getting a message saying its exceeded the 32K span?



Yahoo! Groups Links

Reply via email to