View Single Post
miggles

 
Member Since: Aug 03, 2004
Posts: 39
miggles is on a distinguished road

miggles is offline
I'm not so concerned about system level memory leaks as opposed to application level leaks. Imagine calling a C++ method that does nothing but allocate space, use it locally, but never delete it. Even though the system is safe from being harmed by this, the application may eventually kill itself when space runs out.


void Blort()
{
int *a = new int [10000];
a[0] = 5;
}

int main()
{
while (1)
Blort();
return 0;
}
QUOTE Thanks