The short answer is that no it is not a memory leak and no you do not have to explicitly kill objects. The .NET CLR handles garbage collection and memory management. This is one of the large benefits of the CLR and is much improved over VB6.
Here are a few articles that discuss this in mind-numbing (enlightening) detail... http://www.fawcette.com/vsm/2002_12/magazine/features/balena/default.aspx http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconautomaticmemorymanagement.asp http://msdn.microsoft.com/library/default.asp?url=/msdnmag/issues/1100/gci/toc.asp On 6/10/05, LongTom89 <[EMAIL PROTECTED]> wrote: > Hi I'm new to .NET and have recently written some simple Web apps. I > note that after I close down my app the aspnet_wp.exe process continues > to run. I am concerned that this might be some sort of memory leak. > > In VB6 if I created an object in a function the object would die when > the function completed even if I didn't explicitly kill it. Does > this 'automatic' variable concept still apply in .NET or do I have to > kill all objects when I am finished with them?? > > thanks > > John > > > > > > Yahoo! Groups Links > > > > > > > -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
