Application remains in process table

  • Thread starter Thread starter Michael Jackson
  • Start date Start date
M

Michael Jackson

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
 
Michael Jackson said:
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.
 
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
 
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 said:
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
 
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.
 
that means it's still running!
perhaps you just hide the main windows instead of closing it?
 
Back
Top