DEP Compliance



I have a C# .Net application (EXE and DLL) that I want to make Data Execution
Prevention (DEP) compliant.

What do I need to add to my code to do this?

What the application does:
The EXE loops around with a list of e-mail user ID's (uids), passing each
uid down into the DLL where the DLL makes a SOAP connection to Exchange Web
Services (EWS) to retrieve calendar information.
In my unit test, I purposely pass down an invalid uid and wait for, and
catch, the SOAP/Web Exception. At that point, I get the dreaded, "...Windows
has closed this program..." message box, and my EXE is no longer permitted to
execute.
The uid's that follow, are valid uid's and when permitted to execute (by
running the EXE and DLL on Windows XP instead of Windows Vista), continue
along perfectly to the end with the requested calendar information.

Again, what do I need to do to my C# application (EXE and DLL) to get them
to be DEP compliant?
NOTE: I'm using Visual Studio 2005

Thank you in advance.
Paul
.



Relevant Pages

  • Re: Editors
    ... some strip them on exe files by default. ... "preferred base address" and, yup, relocations are completely ... DLL files, though, aren't loaded into their own address space but are ... EXE's "entry-point", though, is not "special" in that it's just an ...
    (alt.lang.asm)
  • DEP Compliance
    ... I have a C# .Net application (both an EXE and a DLL) that I want to make DEP ... My application contacts my DLL that makes a SOAP connection over to Exchange ... Vista (where DEP compliance is on my default), I get the dreaded "Windows has ... I want to make my C# .Net EXE and DLL compliant, but I just don't know what ...
    (microsoft.public.dotnet.security)
  • Re: DLL pass vector by value crash
    ... The prototype for testfunc is a by-value copy, so it has to make a copy of the value. ... Are you using static linking for either the .exe (if so, it probably won't work correctly, ... clearly using the shared CRT DLL for the DLL you are constructing. ... no crash occurs in either config. ...
    (microsoft.public.vc.mfc)
  • Re: DLL pass vector by value crash
    ... stack of the exe and may allocate default member element on the exe heap. ... If this is a dangerous situation, the simple app I set up calling testFunc() ... in a dll did not crash. ... msvcr90.dll!free and access the source code of free.c. ...
    (microsoft.public.vc.mfc)
  • Re: Using same interfaces for in-proc vs. out-proc
    ... for each server) might work better after all. ... TLB,>you reference it in VB and gain access to all ... both EXE and DLL versions must use the same source code; ...
    (microsoft.public.vc.atl)