Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 995975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:48:23+00:00 2026-05-16T06:48:23+00:00

I am trying to find leaks in my program, which is a framework based

  • 0

I am trying to find leaks in my program, which is a framework based on Ogre3D. I am using the following defines in my code to ‘new’ anything so that later on any leak can be detected and reported correctly by the program.

#ifdef _DEBUG
#include <crtdbg.h>
    #define MyFW_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
    #define MyFW_DELETE delete
#else
    #define MyFW_NEW new
    #define MyFW_DELETE delete
#endif

This works well, and alerts me to any leaks as long as I ‘new’ by using MyFW_NEW (if anybody is wondering why I have a define for delete as well, it is merely for completeness and consistency. When I delete something that was newed using MyFW_NEW I want to delete it with MyFW_DELETE).

The problem is that it is detecting leaks within Ogre (whether they are there or it is detecting false leaks is not the concern here) and outputs a myriad of leaks to a file that I have specified and they are so many (mostly repeats) that Visual Studio hangs up for a good 10 minutes, which is unacceptable. The leaks from my framework are lost within the hundred or so leaks from the libraries my framework depends on. Moreover, it does not give me the line number or the file which is responsible for the leak. I know for sure the leaks don’t originate from my framework as I have tried commented out everything except a few Ogre’s core functions which result in these leaks (output given below).

If I were to assume that these are false leaks (even if they are real leaks, I have to assume this as I cannot change Ogre’s source) is there a way I can filter the dump to show leaks from my code only?

Thanks!

EDIT: I forgot to put the output from the leak detection (I am putting only a few as there are a lot)

Detected memory leaks! Dumping objects
-> {2123} normal block at 0x036073A8, 32 bytes long. Data: 69 6D 61 67 69 6E 61 74 69 6F 6E
20 74 65 63 68

{355} normal block at 0x008CB2B8, 140
bytes long. Data: < a >
94 0B 61 01 00 00 00 00 CD CD CD CD 00
00 00 00

{351} normal block at 0x008CB058, 12
bytes long. Data: 58
B0 8C 00 58 B0 8C 00 CD CD CD CD

{350} normal block at 0x008C4EB8, 12
bytes long. Data: < N N > B8
4E 8C 00 B8 4E 8C 00 CD CD CD CD

{349} normal block at 0x008CAF78, 160
bytes long. Data: < , d x d >
20 2C 05 64 CD CD CD CD 78 E8 04 64 CD
CD CD CD

{348} normal block at 0x008CAF08, 48
bytes long. Data:
4F 67 72 65 2F 53 68 61 64 6F 77 45 78
74 72 75

{347} normal block at 0x008CAE98, 48
bytes long. Data:
4F 67 72 65 2F 53 68 61 64 6F 77 45 78
74 72 75

{346} normal block at 0x008CAE28, 48
bytes long. Data:
4F 67 72 65 2F 53 68 61 64 6F 77 45 78
74 72 75

{345} normal block at 0x008CADB8, 48
bytes long. Data:
4F 67 72 65 2F 53 68 61 64 6F 77 45 78
74 72 75

{344} normal block at 0x008CAD58, 32
bytes long. Data:
4F 67 72 65 2F 53 68 61 64 6F 77 45 78
74 72 75

{343} normal block at 0x008CACF8, 32
bytes long. Data:
4F 67 72 65 2F 53 68 61 64 6F 77 45 78
74 72 75

{342} normal block at 0x008CAC88, 48
bytes long. Data:
4F 67 72 65 2F 53 68 61 64 6F 77 45 78
74 72 75

{341} normal block at 0x008CAC28, 32
bytes long. Data:
4F 67 72 65 2F 53 68 61 64 6F 77 45 78
74 72 75

{340} normal block at 0x008CAB38, 176
bytes long. Data:
73 74 72 75 63 74 20 56 53 5F 4F 55 54
50 55 54

{339} normal block at 0x008CA808, 752
bytes long.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:48:24+00:00Added an answer on May 16, 2026 at 6:48 am

    There is no solution to this problem that I could find. If somebody does find the solution, I will change the answer to theirs, otherwise the answer is, don’t waste your time, find a good leak detector 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Entity framework Code First CTP5 and I am trying to find
I am trying to find the source code that causes some leaks reported in
I have been messing around with Leaks trying to find which function is not
Trying to find an example that has css rollover using sprites & sliding door
I am using latest Xcode, and trying to find memory leaks. When i use
I am trying to find memory leaks in a program I did not design
Trying to find the leak in my code I removed all the thing that
I am trying to find a memory leak using ants memory profiler, and I've
I'm trying to use mtrace to detect memory leaks in a fortran program. I'm
I'm trying to implement a 6 Degrees-style algorithm, in that I'm trying to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.