FIX: Error message when you run an application that is configured to be built for the x64 platform by using the MSVCR90.dll file that calls the strncpy function: "An unhandled win32 exception occurred in 'application_name'"
application that is
configured to be built for an
x64 platform by using the Msvcr90.dll file. The application calls the strncpy function. When you run the application,
you may receive the following error message in the Visual Studio
Just-In-Time Debugger window:
win32 exception occured in
When you check the call
stack, you may find an access violation was
triggered in the Msvcr90.dll file and that the application stopped
the strncpy function. This problem occurs when the following conditions are
The source buffer extends to the end of an allocated
The next byte after
this page does not belong to the running process.
The length to be copied is an even multiple of
The length to be copied includes the final byte of the
A supported hotfix is now
available from Microsoft. However, it is intended to correct only the problem
that is described in this article. Apply it only to systems that are
experiencing this specific problem. This hotfix may receive additional testing.
Therefore, if you are not severely affected by this problem, we recommend that
you wait for the next Visual Studio 2008 service pack that contains this
To resolve this problem immediately, contact Microsoft
Customer Support Services to obtain the hotfix. For a complete list of
Microsoft Customer Support Services telephone numbers and information about
support costs, visit the following Microsoft Web site:
Note In special cases, charges that are ordinarily incurred for
support calls may be canceled if a Microsoft Support Professional determines
that a specific update will resolve your problem. The usual support costs will
apply to additional support questions and issues that do not qualify for the
specific update in question.
You must have Visual Studio 2008 Service Pack 1 installed to apply
You do not have to restart the computer after you apply this
Hotfix replacement information
This hotfix does not replace any other hotfixes.
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.