Thread: Memory Management

  1. #1
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490

    Memory Management

    What percentage of your bugs are caused by errors in memory management? (ie: an extra delete, a missing 'new', etc...)

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    In the specific area of memory management as you define it, about 5-10% (for C++).
    My best code is written with the delete key.

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Very few in general. I'd have to say 5%. Boneheaded errors by far constitute the largest of my problems.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  4. #4
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    does accessing areas of memory that dont' exist constitute a memory problem? That is a pretty big problem for me so I encounter those a lot of the time but I also fix those before I 'release' anything. New and delete doesn't really pose a problem for me all that often. Unless I try accessing something I deleted.........

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >does accessing areas of memory that dont' exist constitute a memory problem?
    I would say so, yes.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. tools for finding memory leaks
    By stanlvw in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2009, 11:41 AM
  2. Replies: 7
    Last Post: 02-06-2009, 12:27 PM
  3. Valgrind says I suck at memory management :)
    By carrotcake1029 in forum C Programming
    Replies: 6
    Last Post: 02-01-2009, 08:10 PM
  4. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  5. Managing shared memory lookups
    By clancyPC in forum Linux Programming
    Replies: 0
    Last Post: 10-08-2003, 04:44 AM