problem about data-execution-prevention-Collection of common programming errors


  • Tim Lovell-Smith
    .net security aslr data-execution-prevention
    I’m writing my program in VS2010 and the build target is .NET 4. I believe that the DEP compatibility flag is on by default. Is that true?Is .NET also compatible by default with ASLR, and is ASLR turned on by default for my process, or do I have to request it at runtime?

  • Matt Hamilton
    c# winforms webbrowser-control data-execution-prevention
    I have written a basic Windows Form app in C# that has an embedded web browser control. I am navigating to a page to view a camera’s feed. The application works fine on Windows XP, but not on Vista. On Vista, I get a AccessViolationException. This seems to be related to Data Execution Prevention. The article at http://jtstroup.net/CommentView,guid,3fa30293-a3a4-4a1c-a612-058e751ad151.aspx has a couple solutions. The fix at the bottom of the page, editbin.exe /NXCOMPAT:NO YourProgram.exe fro

  • Nick Hodges
    delphi windows-vista delphi-2006 data-execution-prevention
    Whenever I stop the Galileo IDE from Delphi 2006 under Vista, I getMicrosoft WindowsBorland® DeveloperStudio for Windows has stopped workingA problem caused the programto stop working correctly. Pleaseclose the program.[Close the program]followed by some dialog by data execution prevention. Even excluding the program from DEP doesn’t help.How can I prevent this from happening?Reacting on answer: Changing to another version of Delphi is not an option, as we develop a framework for our customers t

  • mjn
    delphi data-execution-prevention
    For a test ‘crash’ I need a small piece of Delphi code to see how the operating system logs the DEP violation in the event log.I have found many sources around activating DEP but not about how to ‘trigger’ a DEP violation.Do you have an example?Related question: http://serverfault.com/questions/130716/if-dep-has-stopped-an-app-is-there-a-possibility-to-see-this-events-in-a-logShows how a DEP vialotion should look like in the log

  • Jay Bazuzi

  • cpast
    windows-xp print-spooler dep data-execution-prevention
    After uninstalling a couple print drivers and restarting my system, I got this weird Data Execution Prevention popup window (see attachment). It’s weird because it states that it shut down the Microsoft Spooler SubSystem App, which kept crashing, and was why I uninstalled the print drivers. What is going on with this message, and what should I do about it? Thanks.

  • Joel in Gö
    .net windows-7 crash data-execution-prevention
    I have a serious problem with my .Net program. It calls a native dll, and then crashes instantly because it can’t find a native method. This is behaviour we have seen before, whereby the C# compiler, in its infinite wisdom, sets the flag that the program is DEP compatible, even if it calls a native dll which patently is not.We have the standard workaround for this, where the flag is set to Not DEP Compatible in a post-build step, and this works fine. Everywhere except on my machine. I have Windo