Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maybe Dangling Reference
Message
De
12/07/2002 17:47:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00678284
Message ID:
00678295
Vues:
23
As my infallible status has been shot down in flames as a result of exposure to a non-Codemine tool of which I claim no expertise (see my tag line for substantiation thereof - no "Independent Grid Highlighter Consultant" claims there), I must state up front that as this error occurs whilst using Codemine but is not solely caused by Codemine, I can offer no assistance whatsoever. It is outside my realm of expertise. A dangling reference is primarily caused by VFP's inadequate garbage collection and programmer design/resource release error(s). You'll have to be way more specific than this for a definative answer <bg> Just joking ...

Can you reproduce this scenario at will? When VFP starts C5'ing, sometimes, the slightest little thing causes it to happen again and again. In these cases, re-booting is about the only thing that cures the problem. So, you maybe want to try this when it happens. As to what to do about it, all you can really be is pragmatic in your coding. Try and identify the area where you feel the problem emanates from. Then, specifically write object release code, specifically release every object and actually test that the object has been released thereafter. For example, just assuming that an object is released because a local variable goes out of scope is not sufficient in these difficult scenarios. This type of developer oriented garbage collection is about the only way I know of tracking down dangling references. Finally, if you step through the key code and monitor the debugger, see which objects are instantiated, which ones you expect to be instantiated, which ones persist and see if you can spot the odd-man-out.

HTH


>Quick question. Sometimes when I am testing my app. (but not always) I get the dreaded VFP error Cxxxxx error when I exit the App. I don't think this is caused by CodeMine, but rather maybe something I have done. This requires a complete shutdown of VFP. However, it doesn't always happen. But when it happens, it happens regularly... then dissappears and I can't force it to happen again.
>
>The only unusual thing I have done is placed a cntRichTextEditor on a PageFrame (although I am not sure, it did seem to get worse after I did this).
>
>Dave at CodeMine suggested I might make sure I have a dangling references.
>
>Any suggestions on how to track this down are appreciated. The project is not that big yet, so I would prefer to snuff this out now before I move on.
>
>Mel Cummings
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform