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
Truly a valuable nugget. Thx & out.
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
Post a Comment