IT Community - Software Programming, Web Development and Technical Support

Runtime memory leak detection in C

This is a discussion on Runtime memory leak detection in C within the C and C++ Programming forums, part of the Software Development category; Runtime memory leak detection in C Hi, Is there any tool availalble in VS 2008 team system that will allow ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 06-17-2009, 11:57 PM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Runtime memory leak detection in C

Runtime memory leak detection in C

Hi,

Is there any tool availalble in VS 2008 team system that will allow runtime memory leak detection in unmanged code? Something that other third pary tools like Rational PurifyPlus do.


my code is for smart device (WinCE) and not use C++ or MFC


it only in C. (Compiler is TC )




thanks,
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06-18-2009, 12:56 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: Runtime memory leak detection in C

hi all,

after searching i got the solution


Detecting Memory Leaks in C

CodeGuru: Detecting Memory Leaks in C


thanks to Author of this article.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-18-2009, 12:56 AM
arjkhanna arjkhanna is offline
D-Web Incredible
 
Join Date: Mar 2007
Posts: 1,949
arjkhanna is on a distinguished road
Default Re: Runtime memory leak detection in C

HI,

Our Code Analysis for C/C++ feature has several warnings that may help you detect the defects you are searching for. Code Analysis can be invoked from the command line by passing the /analyze switch to cl.exe, or in Visual Studio Team System by right clicking on your project and choosing Project Only -> Run Code Analysis.



More general information about Code Analysis is available here: Code Analysis for C/C++ Overview. A list of available warnings can be found here: Code Analysis for C/C++ Warnings.
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-18-2009, 12:57 AM
shaalini shaalini is offline
D-Web Architect
 
Join Date: Apr 2007
Posts: 633
shaalini is on a distinguished road
Default Re: Runtime memory leak detection in C

HI,

Insure++ is a runtime memory analysis and error detection tool for C and C++ that automatically identifies a variety of difficult-to-track programming and memory-access errors, along with potential defects and inefficiencies in memory usage. Errors such as memory corruption, memory leaks, access outside of array bounds, invalid pointers, and the like often go undetected during normal testing, only to result in application crashes in the field. Insure++ will help you find and eliminate such defects in your applications to ensure the integrity of their memory usage.

During testing, Insure++ checks all types of memory references, including those to static (global), stack, and shared memory — both in user’s code and in third party libraries. Errors that Insure++ detects include:

  • Corrupted heap and stack memory
  • Use of uninitialized variables and objects
  • Array and string bounds errors on heap and stack
  • Use of dangling, NULL, and uninitialized pointers
  • All types of memory allocation and free errors or mismatches
  • All types of memory leaks
  • Type mismatches in global declarations, pointers, and function calls
  • Some varieties of dead code (compile-time)
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fraud Detection prasannavigneshr Quality Engineering and Methodologies 40 06-08-2009 05:18 AM
collision detection in two sprite amansundar Game Development 1 08-31-2007 05:12 AM
Diagnosing a memory leak in a Java web application navjeet Java Programming 1 07-27-2007 04:06 AM
Mobile Camera Motion Detection? itbarota Mobile Software Development 0 07-23-2007 05:52 AM
Google Toolbar Detection killerkev06 Google 0 03-18-2007 06:33 PM


All times are GMT -7. The time now is 03:06 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0