Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding ASTACKINFO
Message
 
 
To
24/04/2022 19:13:56
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01684243
Message ID:
01684253
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.

Thank you for your suggestion. I will check what code I can add to the CA.AfterCursorCloser() method.
"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