I bet I know what the problem is, the
max-execution-time
In the docs it says "
You can override these settings in the application.
This is an advanced option.
"
How do I override this. This has to be the problem. I know I should
break the loop up but since I am still debugging I need it longer.
This would help me out greatly.
Peace, Mike
Oh yeah, one more thing.
This is totally sequential.
I have a fileModelQueue that is an ordinal array.
I traverse through the whole array,
Here is my green code;
-----------------------------------------------
/**
*
* @event a FileManagerEvent
* @see FileManagerEvent
*/
private function fileQueueCompleteHandler(event:FileManagerEvent):void
{
trace("ComponentDocument::fileQueueCompleteHandler()");
fileManager.removeEventListener(FileManagerEvent.FILE_QUEUE_LOAD_COMPLETE, fileQueueCompleteHandler);
fileDataQueue = ModelLocator.getInstance().fileManagerModel; // collection of File objects
dispatchEvent(new Event("fileQueueComplete"));
currentFileCursor = 0;
allFilesListLength = fileDataQueue.length;
// Now the algo has changed. the fileDataQueue now holds File objects that
// already have their data assigned and have an analyzer (for now).
// we just need to run through these nad call parseTokens() (FOR NOW)
analyzeFileQueue();
}
/**
* Start the queue that will call parseTokens() on the File objects.
* I really need to rename the method to analyze().
*/
protected function analyzeFileQueue():void
{
trace("analyzeFileQueue()", currentFileCursor, allFilesListLength)
if (currentFileCursor == allFilesListLength)
{
trace("RETURN")
onQueueComplete();
return;
}
analyzeNextFile();
}
/**
* @param data
*/
protected function analyzeNextFile():void
{
trace("analyzeNextFile()")
var model:FileDataQueue = fileDataQueue;
curFile = File(model.getItemAt(currentFileCursor));
curFile.baseFilePath = currentClassPath;
curFile.addEventListener("fileAnalyzeComplete", analyzeNextFileHandler);
// problem
curFile.analyze();
}
/**
* @param data
*/
protected function analyzeNextFileHandler(event:Event):void
{
curFile.removeEventListener("fileAnalyzeComplete", analyzeNextFileHandler);
currentFileCursor++;
analyzeFileQueue();
}
Peace, Mike
On 6/14/06, Michael Schmalle < [EMAIL PROTECTED]> wrote:Hi Gordon,
Actually I should have defined this for you.
See what is happening is what you see but it's not infinate.
I am parsing YOUR class files, all 550 of them. This is an event queue loop. It has worked great up untill today. That error occurs right at 596 of 600 files.
I tried moving things around, deleting memory etc. didn't help it. So is this the Flash Player thinking it's an infinate loop when it's not actually.
There are 600 files I am parsing and it seems like when I hit around 590 it dies. I am using a cursor marker to stop (which at smalle file queue lengths it does just fine)and everything is debugging fine.
How can I tell the FLash Player this is not an infinate loop? I have total control over it. THis is in my as3/mxml documenter.
Thanks for you help.
Peace, MikeOn 6/14/06, Gordon Smith < [EMAIL PROTECTED]> wrote:
A StackOverflowError does not necessarily involve an Array. It generally is an indicator of infinite (or at last overly deep) recursion, such as where method A calls method B and method B calls method A, over and over. In your stack trace, it looks like File/analyzeNextFile() is being called recursively rather than sequentially.
- Gordon
From: [email protected] [mailto:[email protected]] On Behalf Of Michael Schmalle
Sent: Wednesday, June 14, 2006 3:57 PM
To: [email protected]
Subject: [flexcoders] Re: Flex2B3 :: StackOverflow #1023 :: hmmm
oh yeah,
StackOverflowError: Error #1023: Stack overflow occurred.
at mx.collections::ListCollectionView/::addItemsToView()
at mx.collections::ListCollectionView/::listChangeHandler()
at flash.events::EventDispatcher/dispatchEvent()
at mx.collections::ArrayList/::internalDispatchEvent()
at mx.collections::ArrayList/addItemAt()
at mx.collections::ListCollectionView/addItemAt()
at mx.collections::ListCollectionView/addItem()
at com.teotiGraphix.documentfx.models.elements::Comment/::populateTagList()
at com.teotiGraphix.documentfx.models.elements::Comment/process()
at com.teotiGraphix.documentfx.models.elements::Comment$iinit()
at com.teotiGraphix.documentfx.analyzers::Analyzer/::getComment()
at com.teotiGraphix.documentfx.analyzers::Analyzer/com.teotiGraphix.documentfx.analyzers:Analyzer::parseMethods()
at com.teotiGraphix.documentfx.analyzers::Analyzer/analyzeMethods()
at com.teotiGraphix.documentfx.models.objects::File/::analyzePackage()
at com.teotiGraphix.documentfx.models.objects::File/parseTokens()
at com.teotiGraphix.documentfx.models.objects::File/analyze()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFile()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeFileQueue()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFileHandler()
at flash.events::EventDispatcher/dispatchEvent()
at com.teotiGraphix.documentfx.models.objects::File/parseTokens()
at com.teotiGraphix.documentfx.models.objects::File/analyze()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFile()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeFileQueue()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFileHandler()
at flash.events::EventDispatcher/dispatchEvent()
at com.teotiGraphix.documentfx..models.objects::File/parseTokens()
at com.teotiGraphix.documentfx.models.objects::File/analyze()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFile()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeFileQueue()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFileHandler()
at flash.events::EventDispatcher/dispatchEvent()
at com.teotiGraphix.documentfx.models.objects::File/parseTokens()
at com.teotiGraphix.documentfx.models.objects::File/analyze()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFile()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeFileQueue()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFileHandler()
at flash.events::EventDispatcher/dispatchEvent()
at com.teotiGraphix.documentfx.models.objects::File/parseTokens()
at com.teotiGraphix.documentfx.models.objects::File/analyze()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFile()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeFileQueue()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFileHandler()
at flash.events::EventDispatcher/dispatchEvent()
at com.teotiGraphix.documentfx.models.objects::File/parseTokens()
at com.teotiGraphix.documentfx.models.objects::File/analyze()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFile()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeFileQueue()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFileHandler()
at flash.events::EventDispatcher/dispatchEvent()
at com.teotiGraphix.documentfx.models.objects::File/parseTokens()
at com.teotiGraphix.documentfx.models.objects::File/analyze()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFile()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeFileQueue()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFileHandler()
at flash.events::EventDispatcher/dispatchEvent()
at com.teotiGraphix.documentfx.models.objects::File/parseTokens()
at com.teotiGraphix.documentfx.models.objects::File/analyze()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFile()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeFileQueue()
at com.teotiGraphix.documentfx.documents::ComponentDocument/com.teotiGraphix.documentfx.documents:ComponentDocument::analyzeNextFileHandler()
at flash.events::EventDispatcher/dispatchEvent()
at com.teotiGraphix.documentfx.models.objects::File/parseTokens()
at com.teotiGraphix.documentfx.models.objects::File/analyze()
the error...On 6/14/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Hi,
I am getting a #1023 statckoverflow error on lines that have nothing to do with an array.
Is this a memory error? Like the player is out of memory. It's happening in a VERY intensive proccessing loop.
The docs say talk to Adobe, if the swf is not corrupt.
Thoughts?
Peace, Mike
--
What goes up, does come down.
--
What goes up, does come down.
--
What goes up, does come down.
--
What goes up, does come down.
--
What goes up, does come down. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] Re: Flex2B3 :: StackOverflow #1023 :: hm... Michael Schmalle
- Re: [flexcoders] Re: Flex2B3 :: StackOverflow #1023 ... Michael Schmalle
- Re: [flexcoders] Re: Flex2B3 :: StackOverflow #1... Michael Schmalle
- RE: [flexcoders] Re: Flex2B3 :: StackOverflow #1... Gordon Smith
- Re: [flexcoders] Re: Flex2B3 :: StackOverflo... Michael Schmalle
- Re: [flexcoders] Re: Flex2B3 :: StackOve... Michael Schmalle
- Re: [flexcoders] Re: Flex2B3 :: Sta... Michael Schmalle
Reply via email to

