As3 Error #1023 Stack Overflow Occurred
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error #1023: Stack overflow occurred up vote 0 down vote favorite I've read a lot of posts about this error. Yet it does not solve my problem. In my case, there are loop working through two funcions like this: function getData() { //doing some stuff here call_socket("data", callback); //When response from socked server has been received, call callback function } function callback(data:Object) { if(!data) { getData(); } //if data is null, continue loop else { //stop the loop } } I got an error on both of these functions: Error #1023: Stack overflow occurred. I understand that this error tells me that I'm calling the functions repeatedly, but in my case, that is what I got to do there. Is there any way to solve this? actionscript-3 share|improve this question edited Sep 16 '14 at 10:54 asked Sep 16 '14 at 9:47 LokoTerrorita 629 The returned data for callback function is correct? –Pan Sep 16 '14 at 9:56 Yes, everything is working fine. I've tested this code a lot of times. Only after an update it throwed me this error –LokoTerrorita Sep 16 '14 at 10:28 show the call_socket method code –BadFeelingAboutThis Sep 16 '14 at 13:21 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote The problem is in the logic of your code. Just think about situation when your call_socket does not return data for some time. This will result in numerous circles of callback and getData. Depending on your app you can achieve desired result in 2 ways: You should use some Event to notify other parts of your app that the data has arrived (instead of callback) You can poll the server at defined time spans. You may use Timer for this. share|improve this answer answered Sep 16 '14 at 11:09 Ingweland 611513 I think i didn't understand you. When socket has received the data from server and compiled all the chunks of the response, it will call that callback function. If it fails, it won't call it thus stopping the loop. There is no chance that getData() is called more that one time per socket call. But maybe you are right. Maybe using an event instead of callback function would work. I will
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a http://stackoverflow.com/questions/25865563/error-1023-stack-overflow-occurred blank message. Please type your message and try again. More discussions in ActionScript 3 All CommunitiesAdobe Animate CC - HomeActionScript 3 1 Reply Latest reply on Oct 15, 2009 3:31 PM by Andrei1 Error: Error #1023: Stack overflow occurred. ginomon0 Oct 15, https://forums.adobe.com/thread/507298 2009 3:19 PM Hi,I'm running into this error when trying to display a modal window using popupmanager and .Here's my code: the stack overflow happens on the line PopUpManager.addPopUp(detailedAXWindow, this, true);package com.ppdi.dashboard.view.isysmon{ import com.ppdi.dashboard.view.AXGrid; import com.ppdi.dashboard.view.AXGridTitleWindow; import mx.collections.ArrayCollection; import mx.controls.AdvancedDataGrid; import mx.controls.Text; import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn; import mx.events.ListEvent; import mx.managers.PopUpManager;public class ISYSMonTable extends AXGrid{ private var printColumns:Array; private var mother:ISYSMonContent; private var procId:String; private var vInt:int; private var hdrStudyNumber:String; private var hdrStudyGroup:String; private var hdrPeriod:String; private var hdrStudyDay:String; private var hdrTimepoint:String; private var hdrProcedure:String; import mx.events.CloseEvent; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.rpc.http.HTTPService; import mx.controls.Alert; import com.ppdi.dashboard.tools.Tools; import mx.managers.CursorManager; import mx.collections.XMLListCollection; // Embed the icon for the groups. [Bindable] [Embed(source="assets/right_arrow_up.gif")] public var icn:Class; private var clickCount:int = 0; private var pr
overflow occurred (only with -debug=false flag)Agile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Closed Priority: Minor https://issues.apache.org/jira/browse/FLEX-14483 Resolution: Later Affects Version/s: Adobe Flex SDK 3.0 (Release) http://flash.bigresource.com/ActionScript-3-0-Error-1023-Stack-overflow-occurred-P3iLmUTGO.html Fix Version/s: None Component/s: .Unspecified - Compiler Labels: None Environment: Affected OS(s): Windows Affected OS(s): Browser: Firefox 2.x Language Found: English Description somewhere in my application I had: private function validateAndSubmit():void { var validatorErrors:Array = as3 error Validator.validateAll(validators); var isValid:Boolean = (validatorErrors.length == 0); if (isValid) { loginService.send(); } } this runs fine when compiled. Actual Results: when compiled with -debug=false (or using "export release build...") it does throw a Error #1023: Stack overflow occurred; Expected Results: Same behavior from as3 error #1023 both compiled versions. Workaround (if any): private var validatorErrors :Array; private function validateAndSubmit():void { validatorErrors = Validator.validateAll(validators); var isValid:Boolean = (validatorErrors.length == 0); if (isValid) { loginService.send(); } } declaring the variable outside the method solved the problem. Activity Ascending order - Click to sort in descending order All Comments Work Log History Activity Transitions Hide Permalink Adobe JIRA added a comment - 27/Jan/12 07:03 Adobe Bug URL: http://bugs.adobe.com/jira/browse/SDK-15219 Original Reporter: thibaud be Discoverability: Medium Number of votes: 3 Regression: No Reproducibility: Every Time Resolved by: dsubrama Severity: Runtime Error reporter: thibaud be Show Adobe JIRA added a comment - 27/Jan/12 07:03 Adobe Bug URL: http://bugs.adobe.com/jira/browse/SDK-15219 Original Reporter: thibaud be Discoverability: Medium Number of votes: 3 Regression: No Reproducibility: Every Time Resolved by: dsubrama Severity: Runtime Error reporter: thi
use the AS class file to do this but I keep getting class path as wrong.I am also getting this ERROR ON OUTPUT OUTPUT ERROR Error: Error #1023: Stack overflow occurred. at mc_redBox() at Wayward() at mc_redBox() [code].... View 8 Replies Similar Posts: Actionscript 3.0 :: Error: Error #1023: Stack Overflow Occurred? Apr 1, 2010 i get the following error messageError: Error #1023: Stack overflow occurred.i cant seem to get past this, im trying to create a loop for my brick movie clip that is created in libraryi dont want to use the coding addchild(brick_mc); the loop is much betterhere is the class file that the error is coming up onBrick.asCode: Select allpackage {import flash.display.*;[code]...... View 2 Replies Actionscript 3 :: AddChild(). Stack Overflow Error? Jan 10, 2012 I'm having problems with addChild() from a class.I have a Ball class:package {import flash.display.Sprite;import flash.display.MovieClip;[code]..... View 2 Replies IDE :: Stack Overflow Error On Only 4 Class Instantiations Aug 3, 2009 I'm having a strange problem w/ stack overflow errors after instantiating a simple class only 4 times. The strange thing is that when I put a trace statement where the classes are instantiated, it clears up the problem.[Code]... View 3 Replies ActionScript 3.0 :: Stack Overflow Error On Only 4 Class Instantiations? Aug 3, 2009 I'm having a strange problem w/ stack overflow errors after instantiating a simple class only 4 timesThe strange thing is that when I put a trace statement where the classes are instantiated, it clears up the problemHere's the classes:Code:package com.foundationflash.example.game.characters{[code].... View 10 Replies ActionScript 1/2 :: Overflow Stack Bug? Aug 29, 2007 I found this strange bug while coding, and wrote it in the simplest way to be sure it was true. Try opening a new AS3 FLA file, and write this code in the Actions Panel:function someFunc(x1:String, x2:String, x3:Number=0):String{var my_result:String = "result";return my_result;}someFunc("someVal1", "someVal2");Calling someFunc will call a #1023 stack overflow error!The only way not to have it is to remove the "x3" Parameter. That'sso strange (and annoying, 'cause before realizing this was a bug i was getting crazy trying to find an error in my original code, which was much more complex). View 9 Replies Xml :: Visualising Stack Overflow? Jun 15, 2009 I recently downloaded the Stack Overflow XML dump, and began playing around with the files. I plan to develop some visualisations o