Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
App Release - or not
Message
De
26/01/2012 10:18:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
26/01/2012 09:53:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Divers
Thread ID:
01533803
Message ID:
01533812
Vues:
46
>I inherited an app that has a call stack that goes
>
>Main.prg calls
> Form CAT calls
> Cat_Read.prg calls
> Form CatLis calls
> Cat_Listen.prg
>
>The Cat_Read.prg does a CAT.Release before it calls the form CatLis. I'm thinking this is not correct, since it's going to try to return to the CAT form before it can close the main program.
>
>Am I remembering correctly?

Mostly... the release will be delayed until the form's code is off the stack, but it should be done afterwards. Check in your debugger - put a breakpoint in form's release and see when exactly does it get released.

Same would happen if you had a reference to the form somewhere - you call its .release(), and it will be done as soon as the reference count is zero.

In both cases, you can start a coverage log and see when release took place.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform