473,378 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Memory Leak Detector for VB.NET?

I ran the trial versions of Memory Validator and .NET Memory Profiler, but I couldn't get any useful information out of either. Whatever happened to good ol' Bounds Checker?
Jun 30 '08 #1
5 2179
Plater
7,872 Expert 4TB
All .NET code has implicit bounds checking. Unless you're using unmanage/unsafe code, DLLImports, other points or graphics, you shouldn't have a memory leak?
Jun 30 '08 #2
Shashi Sadasivan
1,435 Expert 1GB
Well, every event handler that is created, is a potential memory leak.
I am not sure if that has been fixed with 3.0/3.5 but certainly exists with 2.0.

You may have to create a custom dispose method and remove the event handlers manually.

Im on my way trying to find how to use .net clr memory profiler, there are a few other paid ones which apparantly show a better result, but then again, if you have used gdb before, they dont really tell you where the leak is occouring, so the profilers are a step ahead and they apparantly do show which objects are still active.
Jun 30 '08 #3
I'm doing marshaling, but the biggest leaks seem to come from an OCX for scanning that I purchased.
Jun 30 '08 #4
I found another leak detector, GlowCode, and while I still can't get line numbers, at least I can get the function name where the leaks were allocated. I expected to see leaks in my marshaling code, and sure enough there are, but I'm also getting leaks from calling WNetAddConnection2 in MPR.DLL.
Jul 1 '08 #5
Plater
7,872 Expert 4TB
I've never attached more then one event handler to a given event so I didn't even think of that! Yes, the Application events tell you that you need to remove them manually, so I suppose that could be true.
Jul 1 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Debian User | last post by:
Hi, I'm trying to discover a memory leak on a program of mine. I've taken several approaches, but the leak still resists to appear. First of all, I've tried to use the garbage collector to...
5
by: blugus | last post by:
Hi Guys, I've been try to use Dinkum STL library. It workes well first, but report memory leak in MFC Debug Mode. I use Dinkum Unabridged Library for VC++ V4.02, MSVC6, WIN2000 SERVER. I...
10
by: Winbatch | last post by:
Is there a free or shareware tool to detect memory leaks in C++ programs? I've done a variety of google searches but either came up with commercial products or ones I could not get to detect...
4
by: Chinmoy Mukherjee | last post by:
Hi All, Do you know of any free memory leak detector for C++ for windows OS? Regards, Chinmoy
7
by: mosaic | last post by:
Hi, all I really interested in how to check the memory leak of a program. Your smart guys, do you have excellent ideas that could share with me? Thank you. The following is my idea: In C...
3
by: Peter Steele | last post by:
We're doing some development in VS .NET C++ and want to purchase a tool for memory leak detection and related activities. Any recommendations?
1
by: Lighter | last post by:
Is there a way to write a memory leak detector supporting new(nothrow)? For example, #include <My_Debug_New.h> using namespace std; int main() {
6
by: Ark Khasin | last post by:
My pet project is a command-line utility (preprocessor), so it runs and terminates. It uses lots of memory allocations; most of them are quite small. What to do with the allocated objects when they...
1
by: cdmsenthil | last post by:
I have an Infragistics UltrawebGrid . Each Row in the grid is attached to a context menu using Infragistics CSOM Upon click on the menu, I am creating an Iframe dynamically which points to...
13
by: Pep | last post by:
I have recently eradicated a lot of memory leaks in a very old C++ source set. However, whilst they were all fairly easy to resolve, I am confused by the last one. This seems to be related to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.