Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP9: surprising error in Buttonset

Status
Not open for further replies.

Eliott

Programmer
Nov 8, 2009
91
BA
Today I witnessed the strange behavior of my copy of VFP 9 SP1 under Win XP SP2. Certain applications are composed of some twenty forms and reports and has worked without problems. Yesterday I just changed some small details in one of the last new forms and compile the EXE. I took the EXE version to the client and everything worked OK, but when the client started one of the first form in the application (the oldest) and click on the Add button was surprised by the message (Allowed DO nesting or expression evaluation level exceeded) with the Cancel button, Ignore and Help! If you click the Ignore button, then the entire set of forms is behaving strangely, navigation buttons work though the form in editmode =. t., we can not close the form with the Exit ... And yet, and yet the worst of all, that all other forms of the same EXE that have buttonset like controversial form is also starting to behave the same, although before starting problematic forms worked well? Project contentious development applications within the VFP IDE shows all the symptoms in debugger and in the time of "cracking" form indicates an error in the Error method which generates within VFP buttonset collection. Then I changed the least problematic form (change background) and recorded under another name. Then I started compiling the new name of EXE and now everything is working properly again? Now the whole thing to me creates a certain amount of distrust in VFP, but I thought that the runtime DLL or other background files were damaged. New EXE that is working properly deny the thought. Did anyone of you had similar problems and how you can resolve them? Thanks.

There is no good nor evil, just decisions and consequences.
 
Allowed DO nesting or expression evaluation level exceeded"
That tells me that there is a recursion issue going on. Some times it is an error in the error handling/displaying code. E.g. the error code is trying to report the error which is trying to report the error and on and on and on until the # of levels (??256??) is exceeded.

I wonder if something minor was changed to cause an error ( a small misspelling in the code for example.) that started the issue.

Lion Crest Software Services
Anthony L. Testi
President
 
I get a Buttonset error which states that wizbtns.vct does not exist and mentions record # 34 Buttonset.
 
OK, funniest thing is that same form is now working even I didn't fix any code except I change background color, just to make some change before re-compiling application again! I thought it's up to rutime dll of VFP but when newly re-compiled app appears like a one with normal and expected behavior I leaved my first thought about damaged dll and decided to share this unpleasant experience with you here. I hoped that someone experienced like me similar thing or VFP "feature".
I don't get how re-compiling of same form could make working app? And a hours before it couldn't make on same OS, same PC...? Weird. Thanks for your thoughts.

There is no good nor evil, just decisions and consequences.
 
I know that in some cases a FXP file is not updated after making changes to a PRG. Happens to me once in 1000+ hours of programming. Just long enough time to forget that it happens and to be bit by it again. Maybe it was something like that. I wonder if you change the background color to the color that caused the issue if you would or would not get the issue again. I am willing to bet a nickel that you can not get the error to come back.

I think it was the fact that you exited out of VFP and back in again that did it, not the background color change. Just a hunch.

Lion Crest Software Services
Anthony L. Testi
President
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top