Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding ASTACKINFO
Message
From
24/04/2022 19:13:56
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01684243
Message ID:
01684252
Views:
23
>I do not use datasessions. I do not open tables. Everything I do is based on the Cursor Adapter (CA). I have my own biz object, for each table in the application. So, on any particular form, at design time, I drop the biz objects of each table.
>And the CA automatically opens the CA view/cursor for each table. These views are open for the life of the form.
>And I do have a "defensive" code now that checks if the main CA view is open; in certain places. And if it is not open, the code write the error in a hidden LOG. Then periodically I check this log. For most customers I never see anything in this LOG. But a few, on occasion, have entries in this LOG. Sometimes, once a month, or once in a 6 months. No reasonable explanation.
>And I keep adding these "defensive" checks if the CA view is open. But when I checked the log of a few customers (just today), they show that the CA view/cursor was not open in certain places. But I don't see how the view was closed. This is what I am trying to determine.

Maybe you could add some code to CursorAdapter.AfterCursorClose( ) or similar e.g. record the call stack in a log file. You'd probably have to wade through a lot of log entries - most will be valid, it will be a challenge to find the edge cases giving you trouble.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform