Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview and private datasession
Message
From
25/11/2003 12:06:01
 
 
To
25/11/2003 03:08:13
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00853186
Message ID:
00853360
Views:
21
Hi,

I think you've sort of worked this out elsewhere in this thread but FWIW:

I've found that any untrapped error with a treeview operation (typically an invalid attempt at adding nodes) can prevent the treeview (and consequently it's form) from being released cleanly. If the DataSession still exists then it's a pretty good indicator that the form has NOT in fact 'closed normally' - if you check I'll bet the forms Unload() did not in fact fire.

I always code for errors in the Treeview's own Error() method - even if it's just to ignore them <g> and that seems to prevent the problem.

HTH,
Viv

>>
I've got a Form with a (subclassed) container ( Treeview control and ImageList control ).
The Form has a private datasession. Closing the form leaves an unknown datasession behind. The form closes normally.
Except for
this.Treeview.ImageList = this.ImageList
in the init() of the container, there are no object references being kept.

Any solution to get rid of the unknown datasession ? (vfp6sp5)

Leaving the ImageList out does not help either
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform