Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSession troubles.
Message
From
03/01/2001 18:07:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/01/2001 21:31:50
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00457954
Message ID:
00459158
Views:
27
>Hi Dragan,
>I don't think it has anything to do with a prg. You've probably noticed that moving the mouse changes the datasession in the Watch window. I think Christof's datasession rules outlined on the Wiki explain the situation. I strongly believe that SET DATASESSION TO something should be avoided and in its place just instantiate inside session objects where you have that need.

That's why I alternately proposed the Use Again solution. I didn't play much with switching datasessions (just once I wrote a method in a form which would copy all the SETs from the default DS and made damn sure it returned to a proper DS in the end), but we're using ProMatrix here, and it heavily relies on such switchings. It works, but you have to be very careful not to disturb it. Specially nasty is the habit of the oApp object to switch to default DS while its method executes, which makes anything table-related you set in Watch window flip between the regular value and "can't evaluate".

As for the "moving the mouse changes the datasession", I haven't observed that. When does that happen?

back to same old

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

Click here to load this message in the networking platform