Memory Eating - Dangerous?
I was looking into memory managment for C/C++ and found that it can make your computer go bonkers if you don't watch it.
Anyways, take a look at this thing I put together:
Code:
#include <windows.h>
int main()
{
FreeConsole();
int x = 1;
while(x==1)
{
int* fat = new int[999];
int* ugly = new int[999];
}
return 0;
}
If you run it, you will notice that your computer will slow down immediatly! And if you run it too long, it will just stop your system totally. My question is: Can *poor* memory management like this damage your system?
Best Regards,
Machewy