Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to listen for datasessionid change
Message
De
25/05/2017 16:56:24
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Any way to listen for datasessionid change
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Divers
Thread ID:
01651506
Message ID:
01651506
Vues:
100
Hi all,

This came out of my former thread re problems with the datasession being incorrect when running a procedure from a form. To reiterate, I tracked down that when some of the procedures (contained in a .prg) are being run, intermittently they are no longer in the data session that they are supposed to be (because the procedure is called from a method of a form). I have put in a workaround that a datasession is passed to the procedure and if it does not match SET("Datasession") then I invoke SET DATASESSION to make it right (it is a workaround only at this point).

Because this seems to happen exclusively on their network as one of their users, I cannot just set a breakpoint for the datasession changing (can I?).

Is there a way to incorporate some sort of "listener" to the form such that if any process changes the datasession while in the form that I can log who dun it? Can I attach a datasessionid_assign method to the form (have not tried).

Thanks,
Albert Gostick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform