Gosub error

Don Coleman dcoleman at dgcreact.com
Thu Oct 18 07:55:31 PDT 2007


Windows 2000 & XP Pro clients, Windows 2000 Advanced Server, fP 5.0.13.

I have a *clerk posting process which contains 11 gosub commands.  These are
all individual "then statements", none of them nested.  However, one "then
statement" does contain two consecutive gosubs (gosub one;gosub two).  Up
until this week I would see an occasional program termination stating "too
many nested gosubs".  This would mostly occur overnight, after their system
maintenance has completed and users are again active on the system.  I would
almost never see the "too many nested gosubs error" during the day.    

This week I have seen a substantial increase in the number of gosub errors
occurring during the day.  Since I don't believe any of the gosubs are
nested I'm unsure as why I am receiving the "too many nested gosubs" error.
My understanding of a nested gosub would be:

If:
Then: gosub one


One	If:
	Then: gosub two;return

Two	If:
	Then: gosub three;return

Three	If:
	Then:...;return


Etc.  Could there be an issue with version 5.0.13 with regards to this error
or am I missing something?   

Don Coleman
Donald G. Coleman, Consultant
402 Andrew Circle
Indiana, PA 15701
dcoleman at dgcreact.com
(724) 349-6302





More information about the Filepro-list mailing list