Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › [HELP] Runtime Error! (Working Menu)

[HELP] Runtime Error! (Working Menu)

Posts 1–15 of 15 · Page 1 of 1
-Dimensions-
-Dimensions-
[HELP] Runtime Error! (Working Menu)
So I got my menu finally working.



It originally has 45 features, but when /me put all 45 it crashes (I am going to fix that), also need to re-align the title.

When I closed the D3D9 Test Environment I got his error:



Does anyone know where originally this comes from, or how to fix it?

When I tried the hack in Combat Arms, I joined a game, and Combat Arms crashed, you can hear the Error message box pop-up but nothing shows.

Please help a fellow coder
#1 · 16y ago
MR
Mr.Mageman
Are you releasing the font and lines?? if not you shuld...
#2 · 16y ago
whatup777
whatup777
Yeah thats what I thought.
#3 · 16y ago
-Dimensions-
-Dimensions-
I release the Font once, in the PostReset:

Code:
			if (pFont != NULL){
				pFont->Release();
			}
#4 · 16y ago
CO
CodeDemon
C Run-Time Error R6031

As Magicman and Whatup said make sure you are releasing your font.
#5 · 16y ago
freedompeace
freedompeace
Don't use that test environment. The test environment itself does not close properly (check it yourself by just opening and closing the application).

Use another, or make your own
#6 · 16y ago
MR
Mr.Mageman
Quote Originally Posted by -Dimensions- View Post
I release the Font once, in the PostReset:

Code:
			if (pFont != NULL){
				pFont->Release();
			}
you shuld release them when the process closes as folowing:

Code:
BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )
{
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
    //Create your threads here to startup routines
    break;
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
    pLine->Release();
    pFont->Release();
        break;
    }
    return TRUE;
}
#7 · 16y ago
-Dimensions-
-Dimensions-
Quote Originally Posted by Mr.Mageman View Post


you shuld release them when the process closes as folowing:

Code:
BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )
{
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
    //Create your threads here to startup routines
    break;
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
    pLine->Release();
    pFont->Release();
        break;
    }
    return TRUE;
}
Thanks for the reply, but when I tried to use your code, the Test Environment didn't open. Then I tried this:

Code:
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if (dwReason == DLL_PROCESS_ATTACH)
	{
		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D_Hook, NULL, NULL, NULL);
		pFont->Release();
	}

	return TRUE;
}
and test9.exe stopped responding.

Any more solutions?

Edit: Thanks for the reply though.

Another Edit:

I tried:

Code:
	switch (dwReason)
	{    
		case DLL_PROCESS_ATTACH:
		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D_Hook, NULL, NULL, NULL);
		break;
		case DLL_THREAD_ATTACH:
		case DLL_THREAD_DETACH:
		case DLL_PROCESS_DETACH:
		pFont->Release();
		break;
    }
and still got the same error.

More help please
#8 · edited 16y ago · 16y ago
MR
Mr.Mageman
Quote Originally Posted by -Dimensions- View Post
Thanks for the reply, but when I tried to use your code, the Test Environment didn't open. Then I tried this:

Code:
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if (dwReason == DLL_PROCESS_ATTACH)
	{
		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D_Hook, NULL, NULL, NULL);
		pFont->Release();
	}

	return TRUE;
}
and test9.exe stopped responding.

Any more solutions?

Edit: Thanks for the reply though.
Why the fuck are you releasing the font at startup??

do like this instead:

Code:
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);

	if (dwReason == DLL_PROCESS_ATTACH)
	{
		CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)D3D_Hook, NULL, NULL, NULL);
	}
        
	if (dwReason == DLL_PROCESS_DEATTACH)
	{
		pFont->Release();
                pLine->Release();
	}

	return TRUE;
}
#9 · 16y ago
ST
Stephen
Use the Release folder not the Debug
#10 · 16y ago
-Dimensions-
-Dimensions-
Quote Originally Posted by Stephen View Post
Use the Release folder not the Debug
Umm... I know that...

Quote Originally Posted by Mr.Mageman View Post


Why the fuck are you releasing the font at startup??

do like this instead:

Code:
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);

	if (dwReason == DLL_PROCESS_ATTACH)
	{
		CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)D3D_Hook, NULL, NULL, NULL);
	}
        
	if (dwReason == DLL_PROCESS_DEATTACH)
	{
		pFont->Release();
                pLine->Release();
	}

	return TRUE;
}

Code:
1>.\Base.cpp(579) : error C2065: 'DLL_PROCESS_DEATTACH' : undeclared identifier
1>.\Base.cpp(582) : error C2065: 'pLine' : undeclared identifier
1>.\Base.cpp(582) : error C2227: left of '->Release' must point to class/struct/union/generic type
1>        type is ''unknown-type''
No Such thing as PROCESS_DEATTACH.

More help please!
#11 · 16y ago
CR
Crash
Quote Originally Posted by -Dimensions- View Post
Umm... I know that...




Code:
1>.\Base.cpp(579) : error C2065: 'DLL_PROCESS_DEATTACH' : undeclared identifier
1>.\Base.cpp(582) : error C2065: 'pLine' : undeclared identifier
1>.\Base.cpp(582) : error C2227: left of '->Release' must point to class/struct/union/generic type
1>        type is ''unknown-type''
No Such thing as PROCESS_DEATTACH.

More help please!
pLine = ID3DXLine = You don't have it
DLL_RPOCESS_DEATTACH = DLL_PROCESS_DETACH

kthxbai.
#12 · 16y ago
GA
GameTrainerMaker
2 second google search if you still need a fix

Need fix for Microsoft Visual C++ Runtime Library Runtime Error
#13 · 16y ago
CR
Crash
Quote Originally Posted by GameTrainerMaker View Post
2 second google search if you still need a fix

Need fix for Microsoft Visual C++ Runtime Library Runtime Error
Nice 6 day bump
#14 · 16y ago
GA
GameTrainerMaker
yea i saw it in his sig that he needed help, lol!! and after i posted i seen the last post haha
#15 · 16y ago
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Similar Threads

  • runtime error. plz help me '-'By qqhhqqli in Vindictus Help
    6Last post 15y ago
  • Help 1 Error on this menu Pub : C++ :By ultahackers in Combat Arms Hack Coding / Programming / Source Code
    8Last post 16y ago
  • Help with some c++ runtime errorsBy hobosrock696 in C++/C Programming
    8Last post 16y ago
  • Runtime ERROR help.By warrick983 in Combat Arms Hacks & Cheats
    10Last post 17y ago
  • working long knife, need help bypassing errorBy tdct in CrossFire Hack Coding / Programming / Source Code
    3Last post 15y ago

Tags for this Thread

None