Re: Help closing my vfp9 form
- From: supreme_good@xxxxxxxxx
- Date: 20 Apr 2007 07:03:30 -0700
On Apr 20, 9:46 am, supreme_g...@xxxxxxxxx wrote:
On Apr 20, 9:38 am, supreme_g...@xxxxxxxxx wrote:
On Apr 20, 9:15 am, "Anders Altberg" <anders.altberg> wrote:
Has your CLEAR EVENTS been processed?
Is there possibly anywhere an outstanding hanging reference, that is a
variable or property that references theform.
The app won't close until that reference is killed and the reference count
is zero.
-Anders
<supreme_g...@xxxxxxxxx> wrote in message
news:1177072914.394751.296160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello all. I thank you all in advance for anyhelpwith this...
I have a vfp9formwhich was operating normally when the close [X]
button was pressed. Theformwould unload and execution would
stop...perfect. Yesterday, while debugging a seperate issue with a
view,myformsuddenly decided to stopclosing...no matter what I do.
I tried creatingmyown close button...calling everything from the
release method to the unload method....I've tried cancel commands,
quit commands....I've clear events and bupkis! I've set break points
in several areas and find that neither the release or unload events
fire when that button is closed and when I programmatically fire them
myself say in a button...they execute the code and then nothing! I
have found that once I have clicked the close [X] button it grays out
and only then can I close theformby typing "release all" inmy
command line.
Thanks for anyhelp!
Malcolm
Eureka! I feel rather foolish as I completely missed an object
reference I thought I had already commented out! Thanks for helping me
see the forest for the trees! ;)
Malcolm
Actually I have one more to throw your way....how am I supposed to
release these variables before the user clicks the close [X] if there
is no way to predict when a user will decide to try and close theform. Not sure ifmyquestion makes sense but in laymans terms....if I
have to clear the object ref. before it will close and neither the
release or unload methods will execute until I do...how am I to
predict in advance that I need to clearmyreferences? Am I just not
thinking this through logically?
Thanks again for the prompt response!
Malcolm
Apparently I just needed a little more coffee in my system this
morning as it has occurred to me that the answer is probably simple. I
have taken my object reference and localized it. Now it get created as
needed and dies as soon as it's job is done. This has done the trick.
My real sin was in trying to set up my object reference in my init
rather than localized in the method it would be doing it's work. Now I
have declared my object variable public in the init to be sure it is
seen everywhere but I don't actually set the reference until the user
initiates an action which in turn destroys the reference on
completion. Nice and neat!
Of course, please feel free to share any insight on how I might
improve on this design even more, but right now I am quite satisfied
with my current solution. :)
Thanks for everything...including letting me play the fool!
Malcolm
.
- Follow-Ups:
- Re: Help closing my vfp9 form
- From: Cindy Winegarden
- Re: Help closing my vfp9 form
- From: Dan Freeman
- Re: Help closing my vfp9 form
- References:
- Help closing my vfp9 form
- From: supreme_good
- Re: Help closing my vfp9 form
- From: Anders Altberg
- Re: Help closing my vfp9 form
- From: supreme_good
- Re: Help closing my vfp9 form
- From: supreme_good
- Help closing my vfp9 form
- Prev by Date: Re: Help closing my vfp9 form
- Next by Date: Re: Help closing my vfp9 form
- Previous by thread: Re: Help closing my vfp9 form
- Next by thread: Re: Help closing my vfp9 form
- Index(es):
Loading