Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
App Release - or not
Message
De
26/01/2012 10:48:37
 
 
À
26/01/2012 10:18:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
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:
01533827
Vues:
43
The problem I'm having is that it gets back to the Read Events in the Main program and just sits there. Call Stack shows Form1.Command3.Click as the only active program

>>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.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform