Microsoft KB Archive/943126

= An access violation may occur when you run an Active Template Library application that you develop by using Visual C++ .NET 2003 =

Article ID: 943126

Article Last Modified on 10/23/2007

-

APPLIES TO


 * Microsoft Visual C++ .NET 2003 Standard Edition

-



SYMPTOMS
You develop an Active Template Library (ATL) application by using Microsoft Visual C++ .NET 2003. When you run the ATL application, an access violation may occur.

This problem occurs if the Data Execution Prevention (DEP) feature is started.

Note The DEP feature is installed by Windows XP Service Pack 2.



CAUSE
An access violation occurs when the following conditions are true:
 * The DEP feature is enabled.
 * An ATL window thunking code is executed out of the heap.



MORE INFORMATION
No resolution or workaround is available for this problem in Visual C++ .NET 2003. This problem is fixed in Microsoft Visual C++ 2005.

