Hi,
my engine crashes all the time, when i inject this code.
SearchPattern ist from Bakabug
First i had only 1 big Search and i thought this would be the reaseon, so i splitted it into more smaller searches, but it still crashes.
After about 2-3 sec engine.exe stops working.
Anyone a Idea how to fix it?
Kind regards,
Timo
my engine crashes all the time, when i inject this code.
SearchPattern ist from Bakabug
PHP Code:
void GetPattern()
{
DWORD destSize;
DWORD Address = 0;
char Array[255];
char SAddress[10];
destSize=100;
GetPrivateProfileString("Search","Array","NULL",Array,destSize,".\\Load.ini");
if (Array != "NULL")
{
WritePrivateProfileString("Search","Found","1",".\\Load.ini");
DWORD Start;
for (Start = 0x007FFFFF;Start <0x2FFFFFF;Start =+0x100000)
{
Address = SearchPattern(Array,Start,Start+0x100000);
if (Address != 0)
{
WritePrivateProfileString("Search","Found","2",".\\Load.ini");
itoa(Address, SAddress, 10);
WritePrivateProfileString("Search","Address",SAddress,".\\Load.ini");
break;
}
Sleep(20);
}
if (Address = 0)
WritePrivateProfileString("Search","Found","3",".\\Load.ini");
}
else
WritePrivateProfileString("Search","Found","3",".\\Load.ini");
}
After about 2-3 sec engine.exe stops working.
Anyone a Idea how to fix it?
Kind regards,
Timo