Reply To: Record hook not freed??

Product Compare Forums Multi-Edit Support Record hook not freed?? Reply To: Record hook not freed??

#5562
jbrandwood
Participant

Well that was more fun than trying to track down who is using up all the memory in our latest PS2 game.

Once again, ME locked-up on every attempt to record a macro. In each case, the only way to get any response back was to hit CTRL-ALT-DEL, after which the debugger would get to the breakpoint.

For some reason ME just doesn’t seem to get any input after it thinks that it has attached the Windows Hook, and so it doesn’t even see the F7-keypess and try to unhook it in the normal flow.

Anyway, here’s the output …

[code:2na0130t]0:000> bl
0 d 77e17672 0001 (0001) 0:*** user32!NtUserUnhookWindowsHookEx
1 e 0026695f 0001 (0001) 0:*** MeLib!FreeUndoBuffer+0x1183 "j @eax = 0’.echo Unhook error;!gle;g’;’.echo Unhook OK;g’"
0:000> g
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0xc0000033 – Object Name invalid.
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0 – STATUS_WAIT_0
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0 – STATUS_WAIT_0
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0 – STATUS_WAIT_0
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0 – STATUS_WAIT_0
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0 – STATUS_WAIT_0
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0 – STATUS_WAIT_0
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0 – STATUS_WAIT_0
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0 – STATUS_WAIT_0
Unhook error
LastErrorValue: (Win32) 0x57c (1404) – Invalid hook handle.
LastStatusValue: (NTSTATUS) 0 – STATUS_WAIT_0
[/code:2na0130t]