[prog] Bug!!
Jimen Ching
jching at flex.com
Tue Mar 4 00:53:23 EST 2003
On Mon, 3 Mar 2003, Akkana Peck wrote:
>Jimen Ching writes:
>> There isn't really much benefit except to new C programmers that might
>> fall into this trap. But once you learn it, you most likely won't
>> make the same mistake. ;-)
>I wouldn't want to try to count the times I've debugged problems that
>boiled down to a highly experienced programmer making this error
>(dereferencing already freed memory). I'm not sure I can count that
>high. :-) Experienced programmers can get sloppy even though they
>supposedly know better, and programmers make this error all the time.
To err is human. But I'm not sure if I can use the adjective 'sloppy'
along with 'highly experienced' when describing a programmer.
I don't want to sound Narcisistic, but I haven't ran into any memory
problems in quite a while. Of course, I use C++ and encapsulation now.
Which validates your memory wrapper idea. Well, encapsulation takes it
one step further, but same basic idea.
--jc
--
Jimen Ching (WH6BRR) jching at flex.com wh6brr at uhm.ampr.org
More information about the Programming
mailing list