Iwarez
November 19th, 2009, 15:32
Today I encountered two strange things that are DEP related. Our application ran on our Terminal Server and this server has DEP turned on for Windows services only. A colleague of mine reported she had problems with one of the actions she wanted to perform with our program. Windows would show an 0xc0000409 crash every time she performed the action. When I googled it I saw it's a DEP exception.
Strange thing 1:
How can I get a DEP exception when DEP is turned off for normal applications?
To find out what was causing the exception I started my favourite debugger ollydbg. I ran the application, caused the error and the program terminated right away with all threads exiting with error 0xc0000409.
Strange thing 2:
Why did the application terminate instead of breaking on the instruction that caused the exception?
Offcourse I had turned off all automatic exception handling within olly. Only the Floating Point exceptions where passed on.
Can anybody shed some light on this?
Thanks, I-Warez
Strange thing 1:
How can I get a DEP exception when DEP is turned off for normal applications?
To find out what was causing the exception I started my favourite debugger ollydbg. I ran the application, caused the error and the program terminated right away with all threads exiting with error 0xc0000409.
Strange thing 2:
Why did the application terminate instead of breaking on the instruction that caused the exception?
Offcourse I had turned off all automatic exception handling within olly. Only the Floating Point exceptions where passed on.
Can anybody shed some light on this?
Thanks, I-Warez