Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSessions and the control thereof
Message
From
22/05/2009 15:38:09
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
22/05/2009 12:05:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01401547
Message ID:
01401600
Views:
44
>Hello Gentle Peoples
>
>Got an error cropping up from a form "DataSession is not valid" and it's occuring out of the following code that runs on refresh of the toolbar

I'm not quite sure that messagebox() isn't influencing what you see. It's a system dialog, it can take the focus off the app, some activate code may be running after you close the messagebox, and that code may switch the DS on you... all in all, I don't trust it as a neutral observer. You may try to replace these calls with logging into a simple text file and then see what you get. Also, you may add a call to aSessions() to create an array of available sessions - twice, once you get the current session, once in the end, and compare the arrays to see what's missing. Another thing to check is which form or session object owned the invalid DS - if it was released during the run of your code, that would explain it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform