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 901443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:33:20+00:00 2026-05-15T15:33:20+00:00

I think my C++ application is tight and doesn’t leak any memory. Long running

  • 0

I think my C++ application is tight and doesn’t leak any memory. Long running stress tests and static code analyzers seem to indicate as much. However, when exercising a very complex usage szenario the Visual Studio 2008 built in debug heap will show a couple of warnings like the following on exit:

Detected memory leaks!
Dumping objects ->
{318231} normal block at 0x03397FF8, 0 bytes long.
Data: <> üû

What is a memory “leak” of 0 bytes length? Am I corrupting the heap somehow? What could possibly cause the debug heap to emit a warning like that?

  • 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-15T15:33:20+00:00Added an answer on May 15, 2026 at 3:33 pm

    Seeing those “u” characters after the empty bracketed value is creepy. But looking at the CRT source code, that could be explained by a bug in the dumping code, it doesn’t seem to zero-terminate the string when the memory block is 0 bytes (valbuff variable in dbgheap.c).

    Allocating zero bytes is otherwise a supported scenario. And your code not de-allocating it isn’t quite mysterious either perhaps. If you can get the number before the “normal block” output stable then you can assign _crtBreakAlloc() in your initialization code to force a breakpoint. Or you could set a conditional breakpoint on the CRT debug allocator. Trace into a malloc or new call to find it.

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

Sidebar

Related Questions

One thing I struggle with is planning an application's architecture before writing any code.
We are working on designing an application that is typically OLTP (think: purchasing system).
I have a requirement in my application that I think can be met by
Can anyone think of a good solution for getting IOC into a console application?
I'm developing a SOAP application that integrates with a 3rd party. I think the
I have set up a Django application that uses images. I think I have
I need to provide email sending and receiving capabilities within my java web-application. Think
Often, I found OutOfMemoryException on IBM Websphere Application Server. I think this exception occur
What is the preferred way to open a URL from a thick client application
I'm not looking for java-web-start, I'm looking for a thick-client application installation toolkit. I've

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.