Thread: Memory Layout

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    15

    Memory Layout

    I should probably know this, but...
    I'm writing a series of functions that return pointers to objects. In the case that an error occurs I am returning a hex value instead of a pointer.
    My return codes start at 0x00000 and I'm planning to have around 20-50.
    I have investigated many pointers with my debugger and noticed that pointer values are generally much higher than this. Is this purely by coincidence or is it safe to assume a certain range that will NOT interfere with memory in my application?

    ***edit***
    Forgot to mention that my target system is current versions of windows (XP to 7).
    Last edited by chris.r; 04-18-2010 at 01:05 PM. Reason: Clarification

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question regarding Memory Leak
    By clegs in forum C++ Programming
    Replies: 29
    Last Post: 12-07-2007, 01:57 AM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Suggestions on this C style code
    By Joelito in forum C Programming
    Replies: 11
    Last Post: 06-07-2007, 03:22 AM
  4. memory layout and declaration
    By cbastard in forum C Programming
    Replies: 6
    Last Post: 09-13-2005, 12:24 PM
  5. Memory allocation and deallocation
    By Micko in forum C++ Programming
    Replies: 3
    Last Post: 08-19-2005, 06:45 PM