Re: How to end a program
- From: Bob O`Bob <filterbob@xxxxxxxxxxxxxxx>
- Date: Sat, 04 Feb 2006 22:25:00 -0800
Steve Richfie1d wrote:
Boaz, et al,
After reading a gazillion postings on ending programs here, it is obvious (to me) that you are ALL missing something important that is currently causing me some grief!
I have four ActiveX controls on my single form that attach to other large subsystems including speech recognition and synthesis, and they STILL continue to have their events even when NO form is left loaded and there is NO surviving indication of my program on the task bar!!! I was pretty surprised when my program had an error long after having been terminated! Clearly, unloading everything does *NOT* make everything just go away as the Help file would lead you to believe!
Since my application tends to fill memory, occupy the CPU, and continues to interact with other systems that are still running, I must make sure that my application is DEAD, DEAD, DEAD, as in pounding a wooden stake through its still beating heart! All this while avoiding doing anything that might crash other things, e.g. leaving some pointer still active in some other system that is left still running.
I still don't have a good answer that I am 100% sure is correct. I suspect that executing an End statement after closing, unregistering, and unloading everything may be a good place to start.
Any thoughts on this?
*My* thoughts on the matter have been published for years.
google "the evil end statement" (WITH quotes)
Use of the End statement does not "fix" anything, it merely, in some cases,
covers up problems. The problems remain, and often come back to bite you
later. In the long run you'll be better off to find what's wrong and actually
fix it. Though if you're using third party controls, it might be them.
Bob
--
.
- Follow-Ups:
- I finally found the wooden stake to drive through my program's still beating heart!
- From: Steve Richfie1d
- Re: How to end a program
- From: Steve Richfie1d
- I finally found the wooden stake to drive through my program's still beating heart!
- References:
- Re: How to end a program
- From: Steve Richfie1d
- Re: How to end a program
- Prev by Date: Re: How to end a program
- Next by Date: Re: How to end a program
- Previous by thread: Re: How to end a program
- Next by thread: Re: How to end a program
- Index(es):
Relevant Pages
|