Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
App Release - or not
Message
From
26/01/2012 10:18:52
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
26/01/2012 09:53:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Miscellaneous
Thread ID:
01533803
Message ID:
01533812
Views:
45
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform