my theory is that he has called memory into the game and not cleared it up before starting a new one i.e he's returned instead of cleaning the code up leaving the memory that was called still hanging around,i have a simple fix but it would mean putting it into all the returns
function_t(int val)
{
char *msg = new char[30];
if(val == VALID)
{
//do processing....
}
else
{
//don't just return.clean the memory that was alloted.
delete [] msg;
return false;
}
} ......and i bet noone understould a word i just said there :/
but to me its the only thing i can think think off,i just really hope i'm wrong
This post has been edited by wolve: 25 January 2007 - 09:23 AM
Sign In
Register
Help
MultiQuote