If control panel application is named bootini.cpl causes DEP error in explorer u

Giganews Newsgroups
Subject: If control panel application is named bootini.cpl causes DEP error in explorer u
Posted by:  Brenden Walker (Brend…@diablops.com)
Date: Mon, 12 Nov 2007

We discovered that our control panel application that worked fine in D5 causes Data Execution Protection error in explorer. It does not require the cpl be run, we actually found this by going into system and then simply closing the system properties dialog.  Turning off DEP for explorer results in an error anyway (usual application exception dialog) causing explorer to crash.

The version that we compiled with D5 doesn't have this problem.  Now, here's the interesting part.  If we rename our bootini.cpl to xbootini.cpl (or testbootini.cpl) the DEP doesn't happen.  If however we rename it to bbootini.cpl the problem is still present.

Further, I can compile the cpldemo.cpl (included with D2007) and rename the resulting file bootini.cpl and the same crash happens (otherwise it does not).

I even tried replacing the D2007 Ctlpanel.pas with the one from D5 and that didn't solve the problem (didn't figure it would, but thought it worth a try).  The same problems remains.

This has been tested on XP Pro, SP2 with current patches.

Anybody have any ideas?

Replies