Microsoft KB Archive/841999

= FIX: The compiled application or the Visual Studio IDE unexpectedly quits, and you receive a &quot;0xC0000004 Divide by Zero&quot; error message when you reorder the columns in the ListView control in Visual Studio 6.0 SP6 =

PSS ID Number: 841999

Article Last Modified on 9/8/2005

-

The information in this article applies to:


 * Microsoft Visual Studio, Enterprise Edition 6.0
 * Microsoft Visual Basic Professional Edition for Windows 6.0
 * Microsoft Visual Basic Enterprise Edition for Windows 6.0
 * Microsoft Visual Basic Learning Edition for Windows 6.0

-





SYMPTOMS
This problem occurs when you are using Microsoft Visual Studio 6.0 Service Pack 6 (SP6) or when you are using an application that was created by using Visual Studio 6.0 SP6. If the AllowColumnReorder property is set to True, the compiled application or the Visual Studio IDE unexpectedly quits when you reorder the columns in the ListView control. When this problem occurs, you receive a &quot;0xC0000004 Divide by Zero&quot; error message.

This problem occurs if your Microsoft Windows Common Controls (Mscomctl.ocx) file is one of the following versions:  6.1.97.64 - This version is included with hotfix KB826287.

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

826287 FIX: ImageList control from Mscomctl.ocx may not work correctly on Windows XP or later

 6.1.97.82 - This version is included with the Retail release version of Visual Studio 6.0 SP6.

Note This problem occurs only on Microsoft Windows XP and later operating systems.



CAUSE
The hotfix that is described in Microsoft Knowledge Base (KB) article 826287 changes the behavior for the ListView control when Visual Studio 6.0 is running on Windows XP or on a later version of the operating system. Most of the ImageList control calls in Mscomctl.ocx are wrappers calls into the ImageList Shell Common Control class that is defined in Comctl32.dll. However, the ImageList_GetImageRect method is not wrapped. This method still uses the earlier version of the ImageList structure and the earlier version of the ImageList control class that are defined in the Mscomctl.ocx file. This design causes a divide-by-zero error to occur during the column reorder operation.



Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

Note You must have a Visual Studio license agreement to obtain this hotfix.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

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.

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 tool in Control Panel.   Date         Time   Version    Size       File name     Platform 04-Jun-2004 11:21  6.1.97.85  1,032,464  Mscomctl.ocx  x86



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

This bug was introduced in version 6.1.97.64 of the Mscomctl.ocx file that is included with hotfix KB826287.



MORE INFORMATION
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

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

827217 FIX: Access violation in Comctl32.ocx on Windows 2000 or later

896559 FIX: The Windows Common Controls Mscomctl.ocx or Comctl32.ocx may cause your application or the Visual Basic 6 IDE to unexpectedly quit, or you may receive a &quot;Divide By Zero&quot; error message

Keywords: kbQFE kbpending kbbug kbArtTypeFIX kbfix KB841999

Technology: kbAudDeveloper kbVB600 kbVB600Search kbVBSearch kbVS600 kbVS600Search kbVSsearch kbZNotKeyword2 kbZNotKeyword6

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.