Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vtable crash
#1
vtable crash
Reply
#2
Look here. Quote: DWORD_PTR* vTable = (DWORD_PTR*)(pTest); DWORD_PTR* src = (DWORD_PTR*)&vTable[0]; DWORD_PTR* addr = (DWORD_PTR*)&hkFunc; pFunk = (oFunk)VTHook(src, addr); Why you calling something random ? before you call that 2 times: Quote: pTest->test1(5, 6); DWORD_PTR* vTable = (DWORD_PTR*)(pTest); DWORD_PTR* src = (DWORD_PTR*)&vTable[0]; DWORD_PTR* addr = (DWORD_PTR*)&hkFunc; pFunk = (oFunk)VTHook(src, addr); pTest->test1(5, 6); In 1º Call don't crash, but after you call class in Virtual Table in 2º, that crashes cuz you calling something that i don't understood until now. Remove that, and i think that will works, our just re-create the code, comment some thing's, you know.
Reply
#3
your hkfunc is not a class function for starters.
Reply
#4
rep to all, problem solved, thanks
Reply




Users browsing this thread: 1 Guest(s)