Programming Applications for Windows (J Richter)
-
-
Am trying to get Jeffrey's LastMesaageBox example hooking software working on XP using Microsoft Development Studio .NET. I keep getting an error that the stack is overflowing just when the message box is being displayed. Anyone have any ideas?:sigh:
-
It says "Unhandled exception at 0x10011669 in 22 LastMsgBoxInfo.exe: 0xC00000FD: Stack overflow." It then says "There is no source code available for the current location." so I look at the Disassembled version and can't figure out what's going on. Any way of looking at assembler code to debug?Hope you can help.
-
Am trying to get Jeffrey's LastMesaageBox example hooking software working on XP using Microsoft Development Studio .NET. I keep getting an error that the stack is overflowing just when the message box is being displayed. Anyone have any ideas?:sigh:
Most likely you are doing infinite recursion which is very easy to do with hooks... John
-
Most likely you are doing infinite recursion which is very easy to do with hooks... John
-
Thought so, the stack was full of repeated function calls. Can't see why this is happening though, how come it is easy to do with hooks? Any way of preventing this? Thanks.
if you do the wrong thing you can end up calling yourself by passing the hook on to the next hook in the list. Try commenting out the CallNextHookEx part and see if it crashes again... John