On Tue, 15 Jan 2002 lawson_whitney@juno.com wrote: [...]
Hmmm, I can not get a +snoop=riched32 trace with the native riched32. That frustrated me the last time I beat my head against this app and riched32. +snoop simply hangs, and +edit,-snoop=msvcrt produces a huge trace, but the only mention of riched is in some strings to mfc42.6442.
What happens when snoop hangs? Does the process seem to get into an infinite loop? I once had a problem with +snoop where it would get into an infinite loop when the pointer was 0xffffffff (-1). I did not have time to get to the bottom of this at the time and now I am not sure I can even reproduce the problem.
But I did work around the problem by checking for -1 before doing the string check. See the attached patch. +snoop was looping where I added the TRACEs.
-- Francois Gouget fgouget@free.fr http://fgouget.free.fr/ The software said it requires Win95 or better, so I installed Linux.