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.
REFERENCES
For more information about the DEP feature, click the following article number to view the article in the Microsoft Knowledge Base:
875352 A detailed description of the Data Execution Prevention (DEP) feature in Windows XP Service Pack 2, Windows XP Tablet PC Edition 2005, and Windows Server 2003
Keywords: kbexpertiseadvanced kbtshoot kbprb KB943126