Re: How to end a program

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
--
.



Relevant Pages

  • Re: How to end a program
    ... 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!!! ... 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! ... I suspect that executing an End statement after closing, unregistering, and unloading everything may be a good place to start. ...
    (microsoft.public.vb.enterprise)
  • Re: OT:" A very disturbed, unravelled person"
    ... and wish people dead is beyond me. ... After I had enough experience with what I describe as the "irrational mind", it became clear I may never be able find a satisfactory "reason" why people act. ... You can fix, or eliminate and 'understaning' is limited to "it gets them what they want". ... they don't apply their "understanding" beyond grabbing them and stopping them. ...
    (rec.music.beatles)
  • Re: OT:" A very disturbed, unravelled person"
    ... and wish people dead is beyond me. ... After I had enough experience with what I describe as the "irrational mind", it became clear I may never be able find a satisfactory "reason" why people act. ... You can fix, or eliminate and 'understaning' is limited to "it gets them what they want". ... they don't apply their "understanding" beyond grabbing them and stopping them. ...
    (rec.music.beatles)
  • Re: Buying Off-Brand Quickdraws
    ... potentially life saving information via my neighbor and pal dirtwitch ... -- long time dead betty of note. ... as for your gear, dirtwitch tells me it really all depends on whether ... thermos of weird herb tea to ask me to fix her van/again -- and at ...
    (rec.climbing)
  • Re: Dead (?) DECserver 700
    ... > I have a DECserver 700-16 that appears to be dead. ... > Is there a likely fix for this or do I now have a 16 port door stop? ...
    (comp.sys.dec)