473,464 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I think I have memory leaks

The memory consumed by aspnet_wp.exe just keeps going up (as tracked in Task
Manager) until I restart it, so I must have a memory leak. If it makes a
difference, my app makes considerable use of Crystal Reports, and the
reports are exported to PDF format. Where should I look for the source of my
leaks? Also, what is the current "best practice" for deleting objects when
done with them? I have been lazy about doing that, thinking that the .Net
automatic garbage collection would take care of it for me.

Much obliged.
Jul 21 '05 #1
2 2407
I'm using VB.Net, not C#.
Jul 21 '05 #2
It is fairly normal to see consumption go up, as the GC is triggered by low
memory. It does not necessarily indicate a problem.

But, if there is COM interop, the memory usage may be indicative of a
problem. My suggestion would be to hammer the site with WAST or ACT (ships
with VS.NET Enterprise Architect) and see if the whole thing blows or if GC
handles the memory once it gets low. This will tell you if there is a leak.

With interop, leaks are often caused by not closing down objects explicitly.

--
Gregory A. Beamer
MPV; MCP: +I, SE, SD, DBA

************************************************** ********************
Think outside the box!
************************************************** ********************
"Geoff Pennington" <pe*********@stic2.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
The memory consumed by aspnet_wp.exe just keeps going up (as tracked in Task Manager) until I restart it, so I must have a memory leak. If it makes a
difference, my app makes considerable use of Crystal Reports, and the
reports are exported to PDF format. Where should I look for the source of my leaks? Also, what is the current "best practice" for deleting objects when
done with them? I have been lazy about doing that, thinking that the .Net
automatic garbage collection would take care of it for me.

Much obliged.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Krasnik | last post by:
Hello all, I've been messing with checking memory leaks last time, and it looks like some of the memory was not freed due to the fact "library's default allocators keep free memory in a pool for...
14
by: placid | last post by:
Hi all, i have this struct for a binary tree node typedef struct treenode { char *word; struct treenode *right; struct treenode *left; }TreeNode;
0
by: Frank Lopez | last post by:
Does anyone know if Microsoft generated a whitepaper on this topic? Does anyone know what the solution is? (meaning, eliminate the leak problem -- I am seeing three memory leaks from...
17
by: David Schwartz | last post by:
Has anyone noticed memory leaks in their VB.NET Windows Forms apps? My app definitely has some memory leaks, so I did a simple test to see if it was my app or something about VB.NET. I created...
2
by: Geoff Pennington | last post by:
The memory consumed by aspnet_wp.exe just keeps going up (as tracked in Task Manager) until I restart it, so I must have a memory leak. If it makes a difference, my app makes considerable use of...
4
by: NewToCPP | last post by:
Is there any debugging mechanism to find out which part of the code is causing memory leak?
3
by: Jim Land | last post by:
Jack Slocum claims here http://www.jackslocum.com/yui/2006/10/02/3-easy-steps-to-avoid-javascript- memory-leaks/ that "almost every site you visit that uses JavaScript is leaking memory". ...
4
by: PL | last post by:
Hi everyone, I was surprised to see memory leaks in our application when it crashed today. Basically, the code is written in C#, but with c# and C++ DLLS; its the latter (managed extensions) that...
2
by: Trev | last post by:
Is the file "Microsoft Visual Studio .NET 2003\VC7\INCLUDE\crtdbg.h" (specifically, the new operators) used in any way, shape or form in C# ? I am involved in writing an app that uses managed C++...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.