You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed the problem when I got errors from the fact the Function was deleting an object that had already been deleted (because of the first call). This means that OriginalFunction is calling the HookedFunction once and then the "real"-untouched-original function.
Is it a bug or am I missing something ? This is not the first time I'm seing it, but last time I don't remember how the error disappeared.
I checked, there is no other calls to HookedFunction in my code, I 've cleaned and rebuilt my solution to be sure. And APIMonitor detects only one call to Function. And when I remove the call to OriginalFunction, I have only one "HookedFunction FFFFFFFF9C214357" instead of two in the debug file.
The text was updated successfully, but these errors were encountered:
The hook is actually working good, but the problem is a conditional recursive call of EndDoc inside EndDoc, which calls obviously HookedEndDoc. To sum up, hookedEndDoc calls OriginalEndDOc (first 5 bytes of EndDoc) which in turn calls EndDoc +5 (so avoid the jump to hookedEndDoc). Then go to that **** line and call MFP_EndDoc, which is equivalent to EndDoc. So again inside hookedEndDoc, originalEndoc, EndDoc+5 but then, this time, take another branch and don't go to that line (call to MFP_EndDoc). That's why I had 2 calls to hookedEndDoc but no more.
I'm having a problem:
Is writting:
I've noticed the problem when I got errors from the fact the Function was deleting an object that had already been deleted (because of the first call). This means that OriginalFunction is calling the HookedFunction once and then the "real"-untouched-original function.
Is it a bug or am I missing something ? This is not the first time I'm seing it, but last time I don't remember how the error disappeared.
I checked, there is no other calls to HookedFunction in my code, I 've cleaned and rebuilt my solution to be sure. And APIMonitor detects only one call to Function. And when I remove the call to OriginalFunction, I have only one "HookedFunction FFFFFFFF9C214357" instead of two in the debug file.
The text was updated successfully, but these errors were encountered: