Skip to content

"My Application Dies on Server 2003"

From time to time, I’ll answer a question in the Delphi newsgroups like this:

I have a problem with Windows Server 2003 (SP1): My program runs
briefly, fleetingly. Appears in the task manager and disappears very
fleetingly. In other OS does not have this problem.

The problem is almost certainly Data Execution Prevention, which is enabled by default in Server 2003. Most commonly in Delphi applications, DEP is triggered by code which directly or indirectly uses TLanguages. This issue was fixed in Delphi 2005. Note also that older versions of other popular frameworks have also had issues with DEP.

You can enable DEP for an application with a compiler directive, {$SETPEOPTFLAGS $100}.

{ 2 } Comments

  1. Harv | November 27, 2007 at 7:02 pm | Permalink

    Truly a valuable nugget. Thx & out.

  2. Udi | January 27, 2010 at 8:38 am | Permalink

    My App. (Written with Delphi2010) dies few seconds after it starts.
    I’m trying to run it on Windows 2003 Server ( NOT the R2 ) with SP2.

    I’ve tried to disable the DEP (Changing the Boot.ini value from /noexecute=OptOut to AlwaysOff
    But no sign that it helped.

    Any other idea ?

    Thanks,Udi

    Response: Yes, several other ideas.

Post a Comment

Your email is never published nor shared. Required fields are marked *

Bad Behavior has blocked 713 access attempts in the last 7 days.

Close