How to disable function recursion limit

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Mx_
Posts: 1
Joined: 22 Mar 2023, 02:42

How to disable function recursion limit

Post by Mx_ » 22 Mar 2023, 03:17

I wrote a script to parse the json file, but Function recursion limit appears when the file exceeds 20MB, so how to disable the function recursion limit?

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: How to disable function recursion limit

Post by swagfag » 22 Mar 2023, 03:56

u cant. rewrite everything using an iterative approach
(u can recompile ahk and give it more stack space, i guess, but that wont be "disabling" the limit)

RussF
Posts: 1269
Joined: 05 Aug 2021, 06:36

Re: How to disable function recursion limit

Post by RussF » 22 Mar 2023, 06:52

...or you haven't given your recursive function a "way out".

Russ

Post Reply

Return to “Ask for Help (v2)”