Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   General Discussions (http://forums.winamp.com/forumdisplay.php?f=1)
-   -   Since some of you are l33t ha><0z . . . (http://forums.winamp.com/showthread.php?t=67478)

Curi0us_George 3rd December 2001 05:31

Since some of you are l33t ha><0z . . .
 
I've been studying a little C++ in my spare time. Most of my schoolwork is concentrated on Java. I think the Java is a far better, more object oriented, clearer, simpler, etc., language, but I also know that it is not as fast as C++. I considered studying C for a brief period, but decided that I'd rather study C++, since it is somewhat object oriented.

I digress. I would simply like an explanation of why I should not use the "delete" or "delete[]" operators to release memory allocated through the "malloc()", "calloc()", or "realloc()" functions. Likewise, why should I not use the "free()" function to release memory allocated through the "new" or "new[]" operators?

My text sources are telling me that I shouldn't do so, but they don't tell me why. Can it actually cause problems, or is it just considered bad programming to do so. I've mixed the operations in a few test programs, just to see what would happen, and nothing negative came of my experiments. Does it really matter at all, or is my RAM going to melt one day if I mix them to often? :D

Curi0us_George 3rd December 2001 14:41

Well, now. I don't usually bump my own threads, but I know some of you have to know the answer.

Has anyone ever had difficulties arise because you mixed the two?


All times are GMT. The time now is 10:05.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.