ParkJiHwan Posted February 8, 2014 Share Posted February 8, 2014 Hello. I has made a program has infinity loop. Some func use imagesearch func. And A Func call another func infinitely. A few time later, It send error imagesearch stack overflow recursion.. Do you have a solution? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 8, 2014 Moderators Share Posted February 8, 2014 (edited) ParkJiHwan,Welcome to the AutoIt forum. As to your questions - this is why your script crashes:I has made a program has infinity loop. [...] And A Func call another func infinitelyRead the Recursion tutorial in the Wiki to understand why - and to get some hints as to how you might get around the problem. If you still have problems then post the script so we can take a look - see here how to do it. M23 Edited February 8, 2014 by Melba23 Typnig Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
ParkJiHwan Posted February 8, 2014 Author Share Posted February 8, 2014 Here is a example.. Func A() Local $ex = Imagesearcharea(blabla) If $ex = 1 then Blabla Call ("b") Else Call ("a") Func end Func b() Local $ex2 = Imagesearcharea(blabla) If $ex2 = 1 then Blabla Call ("a") Else Call ("b") Func end Link to comment Share on other sites More sharing options...
JohnOne Posted February 8, 2014 Share Posted February 8, 2014 Forget that example, post thea real autoit example because that clearly is not it. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now