Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Programming > Visual Basic

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-2008, 07:50 PM
Auric__
 
Posts: n/a
Re: How to stop an application in the IDE

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.

--
- Is it some kind of toy?
- Ring-Around-the-Apocaplypse, maybe.

--
Posted via a free Usenet account from http://www.teranews.com

Reply With Quote
  #2 (permalink)  
Old 02-01-2008, 08:11 PM
Just_a_fan@home.net
 
Posts: n/a
How to stop an application in the IDE

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.

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!

Mike Morrow

Reply With Quote
  #3 (permalink)  
Old 02-01-2008, 11:25 PM
Auric__
 
Posts: n/a
Re: Re: How to stop an application in the IDE

> On 01 Feb 2008 19:50:50 GMT, in comp.lang.visual.basic "Auric__"
> <not.my.real@email.address> 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;
}

--
Posted via a free Usenet account from http://www.teranews.com

Reply With Quote
  #4 (permalink)  
Old 02-01-2008, 11:48 PM
Just_a_fan@home.net
 
Posts: n/a
Re: Re: How to stop an application in the IDE

Funny, when one runs application.exit, it seems the application should
exit. Thanks to the folks at M$, it does not.

I found the dotnet groups. Thanks for the pointer. Will ask there.

Mike

On 01 Feb 2008 19:50:50 GMT, in comp.lang.visual.basic "Auric__"
<not.my.real@email.address> 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.
>
>--
>- Is it some kind of toy?
>- Ring-Around-the-Apocaplypse, maybe.


Reply With Quote
  #5 (permalink)  
Old 02-02-2008, 12:41 AM
Reverend Fuzzy
 
Posts: n/a
Re: Re: How to stop an application in the IDE


"Auric__" <not.my.real@email.address> 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__"
>> <not.my.real@email.address> 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.



Reply With Quote
  #6 (permalink)  
Old 02-02-2008, 08:22 PM
Just_a_fan@home.net
 
Posts: n/a
Re: Re: Re: How to stop an application in the IDE

I am fairly sure there is a DoEvents in there. I would not have written
if there was not but, then again, sometimes I forget.

Thanks for the reminder, anyway. I will check just to be sure.

Discussion will continue, if needed, on the DotNet forum. Sorry for the
wrong post.

After a decade of VB6, jumping into the 3rd release of .NET is quite a
leap with no safety net (there might be one manual out by now -- due
Jan. 28th -- but most will appear in April). My old 2003 .NET manual is
very lacking!

What fun...

Mike

On Fri, 1 Feb 2008 18:41:36 -0600, in comp.lang.visual.basic "Reverend
Fuzzy" <cajuncoiler@spamless.msbdatasystems.com> wrote:

>
>"Auric__" <not.my.real@email.address> 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__"
>>> <not.my.real@email.address> 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.
>
>


Reply With Quote
  #7 (permalink)  
Old 02-04-2008, 03:29 AM
Auric__
 
Posts: n/a
Re: Re: How to stop an application in the IDE

On Sat, 02 Feb 2008 00:41:36 GMT, Reverend Fuzzy wrote:

>
> "Auric__" <not.my.real@email.address> 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__"
>>> <not.my.real@email.address> 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

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Programming > Visual Basic


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:53 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgages | Electricity Suppliers | Loans | Rapidshare and Megaupload | Debt Help



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114