myerrorhandler problem

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
lunalucky
Newbie
Posts: 14
Joined: Thu May 18, 2017 2:13 pm

myerrorhandler problem

Post by lunalucky » Sun May 21, 2017 7:28 am

Hi, when an error occured, i have to go to label "poik". But in log I see this error: "Branching out of a subroutine is not recommended and may result in memory loss. Subroutines should be allowed to run to their end." Can you help me? Thanks

Let>IGNOREERRORS=1
Let>ONERROR=MyErrorHandler
Let>k=1
ReadLn>C:\P.txt,k,Line
While>Line<>##EOF##
ReadLn>C:\P.txt,k,Line
...
Label>poik
Let>k=k+1
EndWhile
SRT>MyErrorHandler
TimeStamp>C:\Log.txt,%LAST_ERROR% at %LAST_ERROR_LINE%
Goto>poik
END>MyErrorHandler

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: myerrorhandler problem

Post by Marcus Tettmar » Mon May 22, 2017 6:32 pm

Change your Goto>poik to SkipLabel>poik
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts