Error #1000: The system is out of memory (Adobe Air)
Is there a solution to out of memory issue? Even though I have enough physical memory(around 4GB), Adobe Air throws "out of memory" error at around 650 MB. I have a requirement, where in it may require more than 650MB of memory. Alternative approaches like pagination, modules, RSLs or workers will not address our current requirement.
Thanks in Advance!!!
Regards
Sunil.P
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
private var byteArray:ByteArray = new ByteArray();
protected function button1_clickHandler(event:MouseEvent):void
{
var count:int = 1048576*600;
for(var i:uint = 0; i<=count; i++)
{
try{
byteArray.writeBoolean(true);
}catch(e:Error){
trace(e.message);
break;
}
}
}
]]>
</fx:Script>
<s:Button click="button1_clickHandler(event)"/>
</s:WindowedApplication>
