Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem releasing form with TreeView control
Message
De
03/09/1998 20:29:43
 
 
À
03/09/1998 16:12:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00132847
Message ID:
00133056
Vues:
13
John & Rod:

I found my problem! In my Expand method I was traversing the Child nodes incorrectly. I recompiled my code under VFP6 and it failed every single time, not just 20%. This made it much easier to pinpoint the problem. In VFP5, I was probably clobbering memory someplace else and was probably setting my self for a future GPF someplace down the road. It SEEMED like it was working, but it was not. Don't you just hate things working, but for the wrong reason? Oh, well, thanks again guys. Still have the other two questions...NODEFAULT and prevent collapse.



>Rod,
>
>No go on the RemoveObject method. I've tried that, too. It seems like it may be related to my code that puts in the "dummy" nodes for showing the plus signs for lower levels. If I don't let it do that, it never fails to release. But I need to show lower levels that have other nodes. I don't actually populate the lower nodes until its parent is expanded.
>
>Other questions:
>1) Can you do NODEFAULT for methods of an Active-X control? It doesn't seem like it.
>2) Is there anyway to prevent a "colapse" of an expanded node, particulary the top-most level?
>
>
>
>>Fred,
>> Use the RemoveObject method of the form. I have seen this before and this is how to fix it. Let us know how it turns out/
>>
>>
>>Rod
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform