Debugger vs. not debugger difference 
Author Message
 Debugger vs. not debugger difference

I just ran into a very unexpected difference between running under
a de{*filter*} and not. I have an app that temporarily sets ESP (the
stack pointer) for my main thread to a different chunk of memory
(for evil reasons that aren't relevant). I then execute some code
with that as the stack pointer and eventually return, and reset
ESP. This all works fine under Win9x, and it works fine under
WinNT as long as I'm running under the de{*filter*}.

It also works fine on NT when not running under the de{*filter*}
as long as I don't call OutputDebugString(). If I do then my
application is instantly terminated. No crash dialog, no opportunity
to attach a de{*filter*}, nothing.

I am running exactly the same executable in all situations - it's
not a debug vs. release compile issue. I am running it on just
two machines, one for NT one for Win98, so it's not a difference
of whether I have a de{*filter*} installed.

If anybody knows what is happening I would be very curious to

If anybody likes to keep track of differences between running your
app under a de{*filter*} and not, this is a particularly obscure one!

.Bruce Dawson, Cavedog Entertainment.
Makers of Total Annihilation - http://www.*-*-*.com/

Mon, 16 Jul 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Debug program crashes in VS debugger but not outside it

2. PLEASE HELP: I AM NEW TO DEBUGGER (Turbo Debugger 3.0)

3. Debugger question - debugger came up in assembly

4. VS.NET - preload DLLs in debugger

5. Bug in VS.NET Debugger (C#) in exception block

6. The debugger vs. unsized arrays

7. Display CString using VS.NET Debugger

8. Exception Handling Under VS VC6 Debugger

9. VS 7 debugger

10. VS IDE freezing when I debug an application with debugger running

11. VS Debugger doesn't get focus after breapoint is hit in W2k

12. SoftIce vs. VC debugger


Powered by phpBB® Forum Software