General information
Category:
Coding, syntax & commands
Title:
Any way to listen for datasessionid change
Environment versions
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Virtual environment:
VMWare
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only