Memory Fault

This is a discussion on Memory Fault within the C Programming forums, part of the General Programming Boards category; What are some common causes which could cause this error?...

  1. #1
    Unregistered
    Guest

    Question Memory Fault

    What are some common causes which could cause this error?

  2. #2
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    you probably just stepped out of bounds [memory wise] in a protected mode environment... i'd say those are the most common...

    /edit1

    oh, those... and uninitialized pointers...
    hasafraggin shizigishin oppashigger...

  3. #3
    Registered User *pointer's Avatar
    Join Date
    Oct 2001
    Posts
    74
    A good habit to get into is initializing your pointers to null immediately upon creating them. An ounce of prevention is worth hours of debugging.
    pointer = NULL

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory allocation/reallocation
    By magda3227 in forum C Programming
    Replies: 10
    Last Post: 07-04-2008, 03:27 PM
  2. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  3. Memory Leak Help
    By (TNT) in forum Windows Programming
    Replies: 3
    Last Post: 06-19-2006, 11:22 AM
  4. Locating A Segmentation Fault
    By Stack Overflow in forum C Programming
    Replies: 12
    Last Post: 12-14-2004, 12:33 PM
  5. Pointer's
    By xlordt in forum C Programming
    Replies: 13
    Last Post: 10-14-2003, 02:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21