Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to listen for datasessionid change
Message
From
25/05/2017 16:56:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Any way to listen for datasessionid change
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01651506
Message ID:
01651506
Views:
101
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
Next
Reply
Map
View

Click here to load this message in the networking platform