PC Review


Reply
Thread Tools Rate Thread

Application remains in process table

 
 
Michael Jackson
Guest
Posts: n/a
 
      12th Nov 2005
My VB.NET 2003 application sometimes remains in memory, verified by Task
Manager.

I know the app must be keeping a reference to something, but how do I find
out what?

Is there a tool/technique to determine what this reference may be?

Thanks


 
Reply With Quote
 
 
 
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      12th Nov 2005

"Michael Jackson" <(E-Mail Removed)> wrote in message
news:%%tdf.5060$om5.2680@dukeread04...
> My VB.NET 2003 application sometimes remains in memory, verified by Task
> Manager.
>
> I know the app must be keeping a reference to something, but how do I find
> out what?
>
> Is there a tool/technique to determine what this reference may be?
>
> Thanks
>

Make sure your auxiliary threads (if any) are Background threads, else your
process will stay resident when such thread did not terminate when the Main
threads exits.

Willy.


 
Reply With Quote
 
Michael Jackson
Guest
Posts: n/a
 
      13th Nov 2005
I've created no threads, so I assume that would not be the problem.

Short of stepping thru code, etc, I guess I need to purchase a profiler of
some sort.

Michael


"Willy Denoyette [MVP]" <(E-Mail Removed)> wrote in message
news:eTVdf%(E-Mail Removed)...
>
> "Michael Jackson" <(E-Mail Removed)> wrote in message
> news:%%tdf.5060$om5.2680@dukeread04...
>> My VB.NET 2003 application sometimes remains in memory, verified by Task
>> Manager.
>>
>> I know the app must be keeping a reference to something, but how do I
>> find out what?
>>
>> Is there a tool/technique to determine what this reference may be?
>>
>> Thanks
>>

> Make sure your auxiliary threads (if any) are Background threads, else
> your process will stay resident when such thread did not terminate when
> the Main threads exits.
>
> Willy.
>



 
Reply With Quote
 
Mr Newbie
Guest
Posts: n/a
 
      13th Nov 2005
Great name you have there Michael, I assume it is an assumed name?, if not
it must have caused much mirth during your lifetime.

--
Best Regards

The Inimitable Mr Newbie º¿º


"Michael Jackson" <(E-Mail Removed)> wrote in message
news:NTydf.5088$om5.2263@dukeread04...
> I've created no threads, so I assume that would not be the problem.
>
> Short of stepping thru code, etc, I guess I need to purchase a profiler of
> some sort.
>
> Michael
>
>
> "Willy Denoyette [MVP]" <(E-Mail Removed)> wrote in message
> news:eTVdf%(E-Mail Removed)...
>>
>> "Michael Jackson" <(E-Mail Removed)> wrote in message
>> news:%%tdf.5060$om5.2680@dukeread04...
>>> My VB.NET 2003 application sometimes remains in memory, verified by Task
>>> Manager.
>>>
>>> I know the app must be keeping a reference to something, but how do I
>>> find out what?
>>>
>>> Is there a tool/technique to determine what this reference may be?
>>>
>>> Thanks
>>>

>> Make sure your auxiliary threads (if any) are Background threads, else
>> your process will stay resident when such thread did not terminate when
>> the Main threads exits.
>>
>> Willy.
>>

>
>



 
Reply With Quote
 
Richard Grimes
Guest
Posts: n/a
 
      13th Nov 2005
Michael Jackson wrote:
> I've created no threads, so I assume that would not be the problem.
>
> Short of stepping thru code, etc, I guess I need to purchase a
> profiler of some sort.


You've not explained what type of application this is. It does make a
big difference.

For example the following code will exhibit the behaviour you describe:

class MyForm : Form
{
static void Main()
{
MyForm form = new MyForm();
form.Visible = true;
Application.Run();
}
}

Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm


 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      13th Nov 2005
What kind of application is it (Windows or Console like)? Keep in mind that
threads might be created under control of the framework (no managed
application is single threaded), for instance timers might fire on
threadpool threads (though these are Background threads), the process won't
go away when such thread does a blocking call into unmanaged code.

Willy.

"Michael Jackson" <(E-Mail Removed)> wrote in message
news:NTydf.5088$om5.2263@dukeread04...
> I've created no threads, so I assume that would not be the problem.
>
> Short of stepping thru code, etc, I guess I need to purchase a profiler of
> some sort.
>
> Michael
>
>
> "Willy Denoyette [MVP]" <(E-Mail Removed)> wrote in message
> news:eTVdf%(E-Mail Removed)...
>>
>> "Michael Jackson" <(E-Mail Removed)> wrote in message
>> news:%%tdf.5060$om5.2680@dukeread04...
>>> My VB.NET 2003 application sometimes remains in memory, verified by Task
>>> Manager.
>>>
>>> I know the app must be keeping a reference to something, but how do I
>>> find out what?
>>>
>>> Is there a tool/technique to determine what this reference may be?
>>>
>>> Thanks
>>>

>> Make sure your auxiliary threads (if any) are Background threads, else
>> your process will stay resident when such thread did not terminate when
>> the Main threads exits.
>>
>> Willy.
>>

>
>



 
Reply With Quote
 
Lloyd Dupont
Guest
Posts: n/a
 
      14th Nov 2005
that means it's still running!
perhaps you just hide the main windows instead of closing it?

"Michael Jackson" <(E-Mail Removed)> wrote in message
news:%%tdf.5060$om5.2680@dukeread04...
> My VB.NET 2003 application sometimes remains in memory, verified by Task
> Manager.
>
> I know the app must be keeping a reference to something, but how do I find
> out what?
>
> Is there a tool/technique to determine what this reference may be?
>
> Thanks
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ad-aware process remains after closing =?Utf-8?B?S29yeQ==?= Windows XP General 5 8th Mar 2006 09:55 AM
Mail merge issue - ghost Excel process remains after closing application d_b Microsoft Excel Programming 1 16th Aug 2004 02:29 PM
Mail merge issue - ghost Excel process remains after closing application d_b Microsoft Excel Programming 0 16th Aug 2004 01:12 AM
MSACCESS.EXE process remains running after Access application is stopped. =?Utf-8?B?TW9ydGVu?= Microsoft Access 2 26th Nov 2003 09:51 PM
Excel process remains running Josh Microsoft Excel Programming 2 11th Sep 2003 04:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:07 PM.