Search

MFC projects targeted for Windows XP cause stack corruption. by Frank Heimes

Closed
as Fixed Help for as Fixed

4
1
Sign in
to vote
Type: Bug
ID: 584677
Opened: 8/9/2010 2:21:40 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
An MFC application targeting Windows XP causes Run-Time Check Failure #2,
when built on Vista or Windows 7
Details (expand)

Visual Studio/Silverlight/Tooling version

Visual Studio 2010

What category (if any) best represents this feedback?

 

Steps to reproduce

1) Start VS2010 on Vista or Win7
2) Create new project: MFC Application
3) Click "Finish", i.e. use wizzard default settings.
4) Build Solution
5) Run target
> Application starts up and works as expected.
6) Insert "#define WINVER 0x501" at the beginning of stdafx.h
7) Build Solution
8) Run target
> Run-Time Check Failure #2 - Stack around the variable 'info' was corrupted.
at line 269 in file PropertiesWnd.cpp, function "void CPropertiesWnd::SetPropListFont"

See the attached sample project "RunTimeCheckFailure.zip"

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

Program aborts with:
Run-Time Check Failure #2 - Stack around the variable 'info' was corrupted.
at line 269 in file PropertiesWnd.cpp, function "void CPropertiesWnd::SetPropListFont"

Expected results

Program runs without runtime errors
File Attachments
File Name Submitted By Submitted On File Size  
RunTimeCheckFailure.zip 8/9/2010 129 KB
Sign in to post a comment.
Posted by Microsoft on 8/9/2010 at 7:02 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.


Sign in to post a workaround.