AngryHelpDebugging error VS c++

Posts 1–4 of 4 · Page 1 of 1
Debugging error VS c++
Hello,i have one problem. When i wanted to debug my aimbot something goes wrong:

Debug Error!


Program C:\Users\MyName\Desktop\Css Aimbot\Debug\Css Aimbot.exe

Invalid allocation size: 4294967295 bytes.

IDK what a problem i think i coded it right but seems no....help please!
Because I'm assuming you tried to allocate 4 TB of ram somewhere in your program...
Looks like you used new incorrectly. - Why are you trying to allocate 4 gigs of ram at once?


Just a comment:

4294967295 = 0xFFFFFFFF
As Unsigned Int32 = 4294967295
As Signed Int32 = -1

Post code of where the error happens please.
If you're using new, remember to use delete after.

Eg, this way will fill your ram quickly:
Code:
char *lol;

while(1)
{
  lol = new char[512];
  .. //Do shit
}
Enough times repeating will fill your ram.
To fix it:
Code:
char *lol;

while(1)
{
  lol = new char[512];
  .. //Do shit
  delete lol;
}
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?