>>>Hi all,
>>>
>>>I have been using programmatic data environments for 3 years and half without any problem, well nearly... In development mode (NT4, SP3, VFP5 SP3), never a problem.
>>>
>>>In Runtime mode one customer started to have problems when leaving a complicated form and started to receive a "cannot access the selected table" message every time he wanted to close the form. Oddly enough, by checking the "Include debug information" in the project manager and rebuilding the EXE, the problem disappeared... This customer runs NT4 SP3 or Windows 98 (on different machines). WIN98 seemed more "touchy" in this respect.
>>>
>>>A fellow developer handed me another project this week-end that exhibits the same runtime behaviour with 4 forms. The "include debug information" cured the 2 lighter ones. But the problem remains with the 2 others. Worse, it ends up with a GPF in VFP500.DLL...
>>>
>>
>>Hi, Jose,
>>
>>Do you know what command is triggering the error message?
>>
>>regards,
>
>It's a control source error, from controls that do not find their countrol source. In other words, the view gets closed before the control is destroyed.
>
Jose,
How about setting autoclosetables to .F. and closing the tables in the release() or unload() event of the form?
regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.comNo trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.