Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Garbage collection?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00538944
Message ID:
00541539
Vues:
14
Hi Kevin,

Pardon me for jumping in..but i've experieced similar situation.
Pls see my thread #031192 if your case is a bit similar.
In my case, i have a calling form 'A' to call form 'B' and return to form'A'
after some works on form 'B'. My trouble was not released form 'B's datasseion.
When i released form 'B', everything is fine ..form's release and any
variables,all related table closing of form 'B'...except its datasession..which
says 'unknown(3)'..even after coming back to form 'A'. And when i called another
instance of form 'B', VFP crashed to be failed to get next datasession..means
1,2,4 not 1,2,3 bcz of not released datasession of prior form 'B'.
Hackedr's Guide says 'Be aware that once the called form closes,the calling
form's datasession appears as "Unknown" in the Data Session dialog; this seem
to be a harmless side effect, though.' But not in my case...it was terrible and
took several days to settle..still don't know the exact reason.
I solved my problem with calls of form 'A's queryunload() on returning form 'A's
activate method to release form'B's session named 'unknown'.
I know this is not the generic solution but anyhow got rid of error.
i still hope someone gives more generic solution what i'm wrong.
To propery know the current datasession's status, use 'SUSPEND' and 'SET VIEW
ON' at suspected method then you can chechk which table is still open or not.
One thing reminded is to check same table opens before opening view at DE.

1) use lv_customer
...use customer
...customer tables automatically opened and closed by AutocloseTable

2) use customer && open table before view open..
...use lv_customer
...customer table doesn't close automatically..manul close needed

This was so serious to me and would like to add 2cents of my experience.

RGDS
HK.Lee
MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform