Thousands of reference errors in TCMRuntimeManager.as
I'm working on a fairly large AIR app and in the process of trying to find the cause of an out of memory error, I see that the class TCMRuntimeManager.as is throwing thousands of reference errors...just letting my app sit for 10 minutes had over 350,000 reference errors. The function checkTLFFontsLoaded is the culprit. I'm not sure if the reference errors are directly related to the out of memory error, but I did notice that as I interact with the app not all the reference errors are getting garbage collected. If I stop interacting with the app and force garbage collection a few times they all get cleared, but I think that under normal use the garbage collector is getting overwhelmed and doesn't clear out everything, and thus eventually these errors start piling up and contribute to the out of memory error.
The way the project is built is Flash CS 5.5 is used to import psd files, I set up some linkage classes, then export as a swc. The psd text fields are imported as TLFTextFields. The swc assets are then used in a FDT project compiled with Flex SDK 4.5.1 with AIR SDK 3.1. There are 5 products, each with its own swf. The swfs are compiled as Flash browser swfs and they are debugged/profiled using the standalone Flash player. When I profile the individual swfs there are no reference errors. If I profile the main swf (using adl) without loading the individual swfs, there are no reference errors. It's only when one or more of the product swfs are loaded into the main swf that reference errors start piling up. I've tried conerting the static text fields into bitmaps and registering the fonts (all from the same swc) in each swf and it hasn't made the problem go away but the memory spikes are no longer so dramatic. Any ideas on what is the root cause of this error?

