Hello Guest it is June 27, 2019, 07:09:35 AM

Author Topic: error "too many nests Mach4"  (Read 3940 times)

0 Members and 1 Guest are viewing this topic.

Offline birdbrain

*
  •  41 41
  • Stupidity, beyond belief!
    • View Profile
error "too many nests Mach4"
« on: July 26, 2008, 06:28:13 AM »
Can anyone explain the error popup that says "too many nests Mach4"???
I am using Mach3.
Is there a limit to the nesting levels in a program?
What is this limit?
Does this limit apply to parameters or to subprograms (or to both)?
I am nesting maybe 4 deep with common calculations as parameters.
My sub programs are also nested up to 4 deep.
Nesting common blocks of code reduces input errors and makes the program much shorter.

Offline Graham Waterworth

*
  • *
  •  1,861 1,861
  • Yorkshire Dales, England
    • View Profile
Re: error "too many nests Mach4"
« Reply #1 on: July 26, 2008, 08:16:47 AM »
I think the nest depth is 3.

Graham
Never give up, time will pass, the cloud will clear, the sun will shine once more.

Offline birdbrain

*
  •  41 41
  • Stupidity, beyond belief!
    • View Profile
Re: error "too many nests Mach4"
« Reply #2 on: July 26, 2008, 08:52:31 AM »
I think the nest depth is 3.

Graham


Thanks Graham.
Would that refer to subprogram levels or to parameters??

Offline Graham Waterworth

*
  • *
  •  1,861 1,861
  • Yorkshire Dales, England
    • View Profile
Re: error "too many nests Mach4"
« Reply #3 on: July 26, 2008, 01:35:26 PM »
Both Art and Brian have always said that there is no guarantee that parameters are safe.

I have used subs up to 3 deep with no problem, parameters seem to get corrupted after 2 deep totally at random.

Graham
Never give up, time will pass, the cloud will clear, the sun will shine once more.