Solved

Recommend a memory profiler

Posted on 2006-06-22
5
311 Views
Last Modified: 2010-04-16
Hi,

this isn't a mega-points question because I'm only interested in opinions here.

We have a large application that has been created with mostly managed code, although it also runs unmanaged code, some of which we have written, other parts are libraries (eg device drivers).

The application works with heavy Bitmap object traffic  - creating, and destroying where it seems appropiate. However, we are getting some pretty big memory leaks. Some of the areas of leaks can be found using common sense, others are harder to find.

I'd like to know about tools that we could use to help us with the problem. I am aware that for unmanaged code there are some pretty powerfull profilers out there that can even tell you exactly where the application is leaking - compiling the project with the profiler libs etc...

For .NET however, these kind of highly developed tools are hard to find. I have seen one called

.NET Memory Profiler (http://www.scitech.se/)

Any comments?
Any comments on the practise of handling Bitmap objects in .NET?

Thanks.
0
Comment
Question by:Daeljan
  • 2
5 Comments
 
LVL 21

Assisted Solution

by:mastoo
mastoo earned 20 total points
Comment Utility
The Compuware product works nice, although it is expensive.  I recently eval'd one from red-gate.com and it looked good also and is relatively cheap.
0
 
LVL 11

Accepted Solution

by:
vo1d earned 30 total points
Comment Utility
this one is very nice:
http://www.automatedqa.com/products/aqtime/

another one is this one, but i prefer the first:
http://www.red-gate.com/products/ants_profiler/
0
 
LVL 11

Expert Comment

by:vo1d
Comment Utility
are those bitmaps managed or unmanaged objects?
if its managed, have you called the bitmap dispose() method?
you have to keep in mind, that also you have called a dispose method the memory is not freed just in time like a free in c or a delete in c++.
the object is marked for cleanup and will be moved by time in the next generation so the gc will free that memory at any time.
in the worst case, the gc will free that memory if the system memory got low.

0
 
LVL 2

Author Comment

by:Daeljan
Comment Utility
Thanks for the insiight. Points spit according to the contribution - like I said originally, theres no 'right' answer to this question.

BTW, we bought the SciTech profiler in the the end - not bad for the money. I think that .NETs approach to handing bitmaps with regards to memory management is badly implemented, but thats just my opinion.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now