Function recursion limit exceeded

Get help with using AutoHotkey and its commands and hotkeys
nxnure
Posts: 1
Joined: 16 Jan 2021, 15:04

Function recursion limit exceeded

Post by nxnure » 16 Jan 2021, 15:10

Hello guys! im working with telegram api to get some data

this is the code section where the problem occurs

Code: Select all

whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
	whr.Open("GET", "https api.telegram.org /bottoken/getupdates",  Broken Link for safety true)
	whr.Send()
	; Using 'true' above and the call below allows the script to remain responsive.
	whr.WaitForResponse()
	version := whr.ResponseText
This function gets looped every 1 second, it works for a couple minutes an then i get this error : Function recursion limit exceeded.

How can i fix that ? thank you guys!

Edit ( im looping the code with a Gosub at the end of the code )

User avatar
mikeyww
Posts: 5104
Joined: 09 Sep 2014, 18:38

Re: Function recursion limit exceeded

Post by mikeyww » 16 Jan 2021, 15:36

If you have a loop, then please show it.

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

Re: Function recursion limit exceeded

Post by swagfag » 16 Jan 2021, 19:20

im looping the code with a Gosub at the end of the code
then dont do that and use a goto or, better yet, a regular Loop

Post Reply

Return to “Ask For Help”