What percentage of your bugs are caused by errors in memory management? (ie: an extra delete, a missing 'new', etc...)
What percentage of your bugs are caused by errors in memory management? (ie: an extra delete, a missing 'new', etc...)
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.
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.
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.........
>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.