keep getting stack error

lpsarsam

Member
Hi all :D
I'm having a bit of a problem in logicator (flowcharts), it seems that most times a call up a subroutine, I get "stack error - the same variable has been used to repeat procedures which are nested within each other!"
From then, the program just stops simulating.
I do have procedures inside procedures but I don't see why that would cause a problem.
Any help would be greatly appreciated.
Thanks :D
 

Technical

Technical Support
Staff member
Basically you have not understood the concept of sub procedures.

You are attempting to use the 'do procedure' and 'procedure' named cells as 'connection blocks' to simply enable you to jump from one area to the next. This is incorrect and will not work.

You need to have one main program loop. You can 'jump out' of this loop to a procedure, but then that procedure must end with a 'return' cell - this will then take you you back to the next cell in the main program loop.

Your program is never going to work in it's current format - you need a major rewrite to fit in with the way sub procedures work.
 
Top