|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Application remains in process tableMy 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" <michaeldjack***@cox.net> wrote in message news:%%tdf.5060$om5.2680@dukeread04...> My VB.NET 2003 application sometimes remains in memory, verified by Task Make sure your auxiliary threads (if any) are Background threads, else your > 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 > 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 Show quote "Willy Denoyette [MVP]" <willy.denoye***@telenet.be> wrote in message news:eTVdf%2395FHA.1184@TK2MSFTNGP12.phx.gbl... > > "Michael Jackson" <michaeldjack***@cox.net> 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. > 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" <michaeldjack***@cox.net> wrote in message news:NTydf.5088$om5.2263@dukeread04...Show quote > 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]" <willy.denoye***@telenet.be> wrote in message > news:eTVdf%2395FHA.1184@TK2MSFTNGP12.phx.gbl... >> >> "Michael Jackson" <michaeldjack***@cox.net> 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. >> > > Michael Jackson wrote:
> I've created no threads, so I assume that would not be the problem. You've not explained what type of application this is. It does make a > > Short of stepping thru code, etc, I guess I need to purchase a > profiler of some sort. 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. "Michael Jackson" <michaeldjack***@cox.net> wrote in message news:NTydf.5088$om5.2263@dukeread04...Show quote > 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]" <willy.denoye***@telenet.be> wrote in message > news:eTVdf%2395FHA.1184@TK2MSFTNGP12.phx.gbl... >> >> "Michael Jackson" <michaeldjack***@cox.net> 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. >> > > that means it's still running!
perhaps you just hide the main windows instead of closing it? "Michael Jackson" <michaeldjack***@cox.net> wrote in message news:%%tdf.5060$om5.2680@dukeread04...Show quote > 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 > |
|||||||||||||||||||||||