Re: Win2000 sp4 and enormous memory-leaks by timcofonline
timcofonline
Mon Jul 21 05:54:38 CDT 2003
Setting = nothing is a must. I am quite surprised you did not see the leak before this; that is usually the biggest cause of memory leaks
along with the same from an ASP page -> some type of database.
set conn = nothing
That is a definite must as well. Thanks for the update.
Thank you. I hope this information is helpful.
Tim Coffey [MSFT]
This posting is provided ?AS IS? with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft
Corporation. All rights reserved.
--------------------
| From: "Jørn Esbensen" <jes@kl.dk>
| References: <OW58$IuRDHA.1720@TK2MSFTNGP10.phx.gbl> <#RBcH#zTDHA.1132@cpmsftngxa06.phx.gbl>
| Subject: Re: Win2000 sp4 and enormous memory-leaks
| Date: Mon, 21 Jul 2003 08:37:11 +0200
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <u8MIJK1TDHA.2148@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.inetserver.iis
| NNTP-Posting-Host: 212.130.14.131
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.iis:267372
| X-Tomcat-NG: microsoft.public.inetserver.iis
|
| Yes we are using homemade VB6-dll's for the majority of the functionality.
| And its dllhost.exe not inetinfo.exe that is growing.
|
| Since I wrote the post we have looked through the code and explicitly set
| all objects to nothing in the end of the functions.
| And it actually helped!!!
|
| This was quite a surprise because it has never before been required, and I
| thought that VB automatically cleaned up the memory when the function gets
| out of scope.
|
| But it seems to be from now on. So from now on its back to good old c++
| practice. Release everything you create.
|
| Jørn Esbensen
|
| "Tim Coffey" <timcofonline@microsoft.com> wrote in message
| news:%23RBcH%23zTDHA.1132@cpmsftngxa06.phx.gbl...
| > No reported memory leaks. If it were in IIS, we would see inetinfo.exe
| growing out of control; It could be possible that a security or
| > functionality issue was fixed, and therefore exposing an issue with any
| custom objects, etc. If you have any objects written in VB or
| > C++, see if you can run them within a COM+ package, and then see if that
| particular process starts growing. Not saying there is a
| > problem with your code, but this can help us isolate it. May be a runtime
| issue.
| >
| > Thank you. I hope this information is helpful.
| >
| > Tim Coffey [MSFT]
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights. You assume all risk for your use. © 2001 Microsoft
| > Corporation. All rights reserved.
| > --------------------
|
|
|