Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview and private datasession
Message
De
25/11/2003 08:06:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00853186
Message ID:
00853226
Vues:
19
David,

No CreateObject() calls.

Hierarchy:
Form
    Subclassed Container
             subclassed Treeview
             ImageList
?_screen.FormCount && 0
?type('_screen.Forms[1]') && U
?type('_screen.Forms[2]') && U
As I said, the form closes normally. The formname is Null in the debugger

Seems like the objects added with Treeview.Nodes.Add() have a datasession property

Clear all releases the datasession, but that is an overkill imo

Been through the dangling object references and I always avoid them. I'd be surprised if there were

____________________________________________________________________
>Gregory,
>
>Are you doing any CREATEOBJECT() calls? DataSession lifetime is tied to the lifetime of any VFP object instantiated while the form runs. When you look at the _screen.Forms[] collection the form isn't in there?
>
>>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
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform