Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Record is out of Range
Message
 
 
To
23/05/2021 15:15:51
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01680680
Message ID:
01680700
Views:
33
>Hi Dmitry.
>
>>Today I looked at a couple of screen shots created when the error occurred. And the screen shot show one of the form/windows of the application. Yet, the ASTACKINFO() has nothing about this form.
>>So, my question. How could it happen that the error actually happens in one of the forms of the application but the error log (created with ASTACKINFO) only shows the Start() method?
>
>ASTACKINFO() only shows you your code, so a form that is not running any code would not show up in the array. So, for instance, if you have a form up, and say closed a table that it was using, then when the user tried to use the form it would throw and error. If that error was in your code on that form the it would be in the array, but if the error was see by VFP, say the cursor was a control source, or use in a grid, then at the point that VFP found there was a problem and threw an error there would be no user code on the form running, so it wouldn't appear in the array. If the crashing form was being triggered by your code, say you had a ThatForm.Refresh() in some code, then that line should be in the array, but there won't be a mention of the crashing form as long as your code isn't the part that is crashing.
>
>Ian Simcock.

Ian,

Thank you for your detailed answer.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform