WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: jfrasier on August 20, 2013, 01:29:38 PM

Title: Error 3353
Post by: jfrasier on August 20, 2013, 01:29:38 PM
Winbatch 2013B
Windows XP

I have a compiled script that runs correctly for a period of time and then I get the error:

3353:Struct Error: Nesting of structures is too complex

Then in the box it says I@@AX Check

Here is my code:

:Check

If AppExist("chrome.exe")==@FALSE Then Run("chrome.exe", "")

Delay(10)

GoSUB Check

I am just wanting to reopen Chrome in case someone closes it.

Thanks.

Jane
Title: Re: Error 3353
Post by: Deana on August 20, 2013, 01:48:25 PM
That is an improper use of the GoSub Function. GoSub expects a RETURN statement.

The following tech article describes the cause of this error:
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/FAQs~-~Frequently~Asked~Questions+Nesting~of~Structures~Too~Complex~or~Deep~.txt

It looks like you intend to loop that code. May I recommend using a While loop instead:

Code (winbatch) Select

While @True
   If AppExist("chrome.exe")==@FALSE Then Run("chrome.exe", "")
   Delay(10)
EndWhile
Title: Re: Error 3353
Post by: jfrasier on August 20, 2013, 02:43:32 PM
Thanks so much. I rarely get an opportunity to write any code so am very rusty and appreciate your quick response.

Jane