Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unknown(x) data session causing app crash
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00176195
Message ID:
00176309
Views:
29
>>Using VFP6 on Win98 machine.
>>
>>Using private data sessions on my forms, intermitanntly, when the form is released, the data session goes to unknown(x), and the app crashes when I close it. It doesn't crash until exiting the the app or program that called the form.
>>
>>The error is the 'C000005' that i've seen in many threads, but none addressed it in this context.
>>
>>Please help
>>
>>Thanks,
>>
>>Dean
>
>Unknown datasessions are usually caused by open transactions that require an END TRANS or ROLLBACK or modified buffers that need a =TableUpdate or =TableRevert. Beyond that, if you've created cursors in things like comboboxes but they are not listed in the DE, then they may not close causing the datasession to be unable to close because a cursor still exists in it.
>
>Steve

Steve, Thanks for your response. I am not using transactions. I found that I always get the error when I click a nav button on the toolbar then click the command button on a form that executes some code then releases the form. Even when nothing has been edited. I also added tableupdates/tablereverts while debugging with no success.

I put my nav tools back on the form and everythings working fine. I also quit calling my forms from the app object.

This is but one of a list of difficulties I've experienced trying to get my arms around using the VFP6 framework via the app builder. I am now going back to my old hack way of putting my progs together. I am able to use many of the objects in the FFC/Component Gallery though...

Again thanks,

Dean
Previous
Reply
Map
View

Click here to load this message in the networking platform