Visual Studio 'Garbage' marker

Posted on 2004-11-03
Last Modified: 2010-04-01
I don't use VS, so maybe I'm wrong, but..

I've a feeling that (in debug mode?) it uses a specific hex value to mark bytes as garbage, so it can spot illegal memory access... If that's true, could someone remind me what that value is, please..

Question by:andrewjb
    LVL 13

    Accepted Solution

    LVL 12

    Author Comment

    Ooops. Sorry.

    I'm sure I've seen another fill-byte/word used, but 0xdd is certainly one answer! Thanks, SteH

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Title # Comments Views Activity
    What are the types of DLL files.? 7 69
    Handling string inputs in C/Linux 23 157
    C++ assignment question 7 110
    c++ syntax question 9 23
    Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
    This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now