Microsoft KB Archive/883657

From BetaArchive Wiki

Article ID: 883657

Article Last Modified on 7/20/2006



APPLIES TO

  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition




SYMPTOMS

In Microsoft Visual Studio .NET 2003, the CDatabase::Connect method passes an incorrect buffer size to the SQLDriverConnect function in a Microsoft Visual C++ .NET solution. Additionally, the application that makes this function call may close unexpectedly.

CAUSE

This problem occurs because of a bug in the CDatabase::Connect method in the Dbcore.cpp file. The incorrect buffer size is passed to the SQLDriverConnect method. Therefore, the application closes.

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it 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 P1 that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product 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.

Prerequisites

No prerequisites are required.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

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.

File name File version File size Date Time Platform
Afx.h 56,223 17-Jul-2003 22:22 x86
Atl.lib 14,546 12-Aug-2004 02:51 x86
Atl71.dll 7.10.4224.0 89,088 12-Aug-2004 02:51 x86
Atlcomtime.inl 17,677 18-Nov-2003 03:55 x86
Atlevent.h 13,014 22-Jan-2004 17:05 x86
Atlhost.h 76,374 04-May-2004 18:11 x86
Atls.lib 1,199,632 12-Aug-2004 02:51 x86
Atlsd.lib 1,240,238 12-Aug-2004 02:50 x86
Atltime.h 10,647 29-Aug-2003 22:16 x86
Atltime.inl 14,773 29-Aug-2003 22:18 x86
Dbcore.cpp 118,402 03-Aug-2004 19:55 x86
Eafxis.lib 319,746 12-Aug-2004 03:56 x86
Eafxisd.lib 310,128 12-Aug-2004 03:56 x86
Filest.cpp 9,121 11-Sep-2003 20:30 x86
Mfc70d.dll 7.10.4224.0 2,183,168 12-Aug-2004 04:00 x86
Mfc71.dll 7.10.4224.0 1,060,864 12-Aug-2004 04:59 x86
Mfc71.lib 2,580,010 12-Aug-2004 04:02 x86
Mfc71chs.dll 7.10.4224.0 40,960 12-Aug-2004 04:13 x86
Mfc71cht.dll 7.10.4224.0 45,056 12-Aug-2004 04:13 x86
Mfc71d.lib   3,361,062 12-Aug-2004 04:01 x86
Mfc71deu.dll 7.10.4224.0 65,536 12-Aug-2004 04:13 x86
Mfc71enu.dll 7.10.4224.0 57,344 12-Aug-2004 04:13 x86
Mfc71esp.dll 7.10.4224.0 61,440 12-Aug-2004 04:13 x86
Mfc71fra.dll 7.10.4224.0 61,440 12-Aug-2004 04:13 x86
Mfc71ita.dll 7.10.4224.0 61,440 12-Aug-2004 04:13 x86
Mfc71jpn.dll 7.10.4224.0 49,152 12-Aug-2004 04:13 x86
Mfc71kor.dll 7.10.4224.0 49,152 12-Aug-2004 04:13 x86
Mfc71u.dll 7.10.4224.0 1,047,552 12-Aug-2004 04:50 x86
Mfc71u.lib 3,348,140 12-Aug-2004 04:06 x86
Mfc71ud.dll 7.10.4224.0 2,178,048 12-Aug-2004 04:03 x86
Mfc71ud.lib 4,287,960 12-Aug-2004 04:04 x86
Mfcs71.lib 555,888 12-Aug-2004 04:24 x86
Mfcs71d.lib 582,136 12-Aug-2004 04:01 x86
Mfcs71u.lib 490,054 12-Aug-2004 04:25 x86
Mfcs71ud.lib 507,600 12-Aug-2004 04:04 x86
Nafxcw.lib 16,912,682 12-Aug-2004 03:56 x86
Nafxcwd.lib 17,041,478 12-Aug-2004 03:56 x86
Nafxis.lib 129,138 12-Aug-2004 03:56 x86
Nafxisd.lib 132,454 12-Aug-2004 03:56 x86
Objcore.cpp 6,073 17-Jul-2003 22:19 x86
Occcont.cpp 24,323 17-Jul-2003 23:21 x86
Occdlg.cpp 20,901 16-Jul-2004 21:34 x86
Olefact.cpp 16,801 20-Jan-2004 18:31 x86
Olepset.cpp 40,431 25-Mar-2004 04:32 x86
Olestrm.cpp 14,141 05-May-2004 15:48 x86
Statreg.h 34,214 14-Jul-2004 19:47 x86
Uafxcw.lib 17,211,274 12-Aug-2004 03:59 x86
Uafxcwd.lib 17,433,488 12-Aug-2004 03:59 x86
Vc.user.atl71.rtl.x8 101,376 12-Aug-2004 19:46 x86
Vc.user.mfc71.loc.rtl.x8 100,864 12-Aug-2004 19:46 x86
Vc.user.mfc71.rtl.x8 919,040 12-Aug-2004 19:46 x86
Winfrm.cpp 65,304 12-Aug-2004 00:29 x86
Winocc.cpp 19,190 29-May-2004 01:40 x86


STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


884057 FIX: In Visual Studio .NET 2003, the CRegObject::ResourceRegisterSz function does not test for a NULL value, and the CDatabase::Connect method passes an incorrect buffer size


Keywords: kbprb kbhotfixserver kbqfe KB883657