Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSessions and the control thereof
Message
De
22/05/2009 15:38:09
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
22/05/2009 12:05:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01401547
Message ID:
01401600
Vues:
43
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform