home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,567 of 10,840   
   Auric__ to Reverend Fuzzy   
   Re: Re: How to stop an application in th   
   04 Feb 08 03:29:05   
   
   From: not.my.real@email.address   
      
   On Sat, 02 Feb 2008 00:41:36 GMT, Reverend Fuzzy wrote:   
      
   >   
   > "Auric__"  wrote in message   
   > news:47a3aa68$0$26041$88260bb3@free.teranews.com...   
   >>> On 01 Feb 2008 19:50:50 GMT, in comp.lang.visual.basic "Auric__"   
   >>>  wrote:   
   >>>   
   >>>>On Fri, 01 Feb 2008 20:11:31 GMT,  wrote:   
   >>>>   
   >>>>> I tried me.close and application.exit.  Neither work.  Tried   
   >>>>> clicking the big red X and the form closed but the app kept   
   >>>>> running and producing debug.print output.   
   >>>>   
   >>>>Step through your app and find what's still running when the form   
   >>>>is closed. Implement a way to tell it to stop doing whatever it's   
   >>>>doing.   
   >>>>   
   >>>>> How does one definitely stop an app while in the IDE?  Well,   
   >>>>> one could click the blue stop button in the IDE but that   
   >>>>> usually leaves gobs of memory unaccounted for and will cause   
   >>>>> problems after a few reps as uncollected garbage memory clogs   
   >>>>> the program space.   
   >>>>>   
   >>>>> And starting and stopping this .NET beast is really slow!   
   >>>>   
   >>>>Try asking in a .net group.   
   >>   
   >> On Fri, 01 Feb 2008 23:48:47 GMT, "Just_a_fan" wrote:   
   >>   
   >>> Funny, when one runs application.exit, it seems the application   
   >>> should exit.  Thanks to the folks at M$, it does not.   
   >>   
   >> Yeah, you'd think so -- wait, I'm not a .net programmer! I don't   
   >> know!   
   >>   
   >>> I found the dotnet groups.  Thanks for the pointer.  Will ask   
   >>> there.   
   >>   
   >> No prob. Glad you were able to find them without a specific   
   >> pointer.   
   >>   
   >> --   
   >> ultimate_answer_t deep_thought(void) {   
   >>    sleep(years2secs(7500000));   
   >>    return 42;   
   >> }   
   >   
   > The problem here is not M$, it's the programmer...in this loop,   
   > you've left no way for the cpu to service other functions/subs.   
   > What you need is to increment a counter by firing a timer   
   > object.... then you can put something in to let the cpu do other   
   > things. (does .NET have a DoEvents function?)   
   >   
   > The way you've got it now, you're putting the whole system to sleep   
   > when it hits your loop... when will the cpu have time to see if   
   > you're pressing a stop button, or "x-ing out" of the application?   
   > The program will never see the IDE again, until you've killed the   
   > process, IDE and all.   
      
   Are you responding to my sig? That's a Hitchhiker's Guide to the   
   Galaxy reference. It has nothing to do with the post.   
      
   --   
   Hmm... thoughtness... brainage...   
      
   --   
   Posted via a free Usenet account from http://www.teranews.com   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca