How to address "ERROR: Exception in HkCb_SendChat"?
-
This happned when I implementing user command functions for my plugin.
That I did is just simplely hook
PLUGIN_UserCmd_Process
,PLUGIN_UserCmd_Help
and```
PLUGIN_ExecuteCommandString_Callbackp_PI->lstHooks.push_back(PLUGIN_HOOKINFO((FARPROC*)&UserCmdProcess, PLUGIN_UserCmd_Process, 0));
p_PI->lstHooks.push_back(PLUGIN_HOOKINFO((FARPROC*)&UserCmdHelp, PLUGIN_UserCmd_Help, 0));
p_PI->lstHooks.push_back(PLUGIN_HOOKINFO((FARPROC*)&UserCmdCallback, PLUGIN_ExecuteCommandString_Callback, 0));Processers:
void __stdcall UserCmdHelp(uint iClientID, const wstring &wscParam)
{
// Empty indeed
}bool __stdcall UserCmdProcess(uint iClientID, const wstring &wscCmd)
{
returncode = DEFAULT_RETURNCODE;
return false;
}bool __stdcall UserCmdCallback(CCmds* cmds, const wstring &wscCmd)
{
returncode = DEFAULT_RETURNCODE;
return false;
}And after that, I got following errors:
[02.03.2015 13:35:36] ERROR: Exception in HkCb_SendChat
[02.03.2015 13:35:36] Code=c0000005 Offset=837d Module=“E:\Games\Freelancer\EXE\FLHook.dll”
[02.03.2015 13:35:36] eax=0 ebx=2a6380 ecx=32562800 edx=0 edi=0 esi=6d8e5a8 ebp=727e4e4 eip=5b1837d esp=727d6b4
[02.03.2015 13:35:36] Attempting to write minidump…
[02.03.2015 13:35:36] Minidump ‘./flhook_logs/debug/flserver_02.03.2015_13.35.36-1.dmp’ written.
[02.03.2015 13:35:53] ERROR: Exception in HkCb_SendChat
[02.03.2015 13:35:53] Code=c0000005 Offset=837d Module=“E:\Games\Freelancer\EXE\FLHook.dll”
[02.03.2015 13:35:53] eax=0 ebx=2a6380 ecx=32562800 edx=0 edi=0 esi=6d8e5a8 ebp=727e4e4 eip=5b1837d esp=727d6b4
[02.03.2015 13:35:53] Attempting to write minidump…
[02.03.2015 13:35:53] Minidump ‘./flhook_logs/debug/flserver_02.03.2015_13.35.53-1.dmp’ written.
[02.03.2015 13:36:38] ERROR: Exception in HkCb_SendChat
[02.03.2015 13:36:38] Code=c0000005 Offset=837d Module=“E:\Games\Freelancer\EXE\FLHook.dll”
[02.03.2015 13:36:38] eax=0 ebx=2a6380 ecx=32562800 edx=0 edi=0 esi=6d8e5a8 ebp=727e70c eip=5b1837d esp=727d8dc
[02.03.2015 13:36:38] Attempting to write minidump…
[02.03.2015 13:36:38] Minidump ‘./flhook_logs/debug/flserver_02.03.2015_13.36.38-1.dmp’ written.Noice these exceptions maybe just indicates I calling HkKill etc with client 0, which is not existed, so it's wrong. But all functions is works normally before I did the user command related hook things, so I thought it must to do with those hooks. But I just can't address the problem. Maybe I did something in wrong way? Please help, Thanks!