Error 3353

Started by jfrasier, August 20, 2013, 01:29:38 PM

Previous topic - Next topic

jfrasier

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

Deana

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
Deana F.
Technical Support
Wilson WindowWare Inc.

jfrasier

Thanks so much. I rarely get an opportunity to write any code so am very rusty and appreciate your quick response.

Jane