Visio2000: "Run-time Error R6026 Pure Virtual Function Call" When You Add Snap-in to MMC (322862)



The information in this article applies to:

  • Microsoft Visio 2000 Enterprise Edition Service Release 1 (SR-1), when used with:
    • the operating system: Microsoft Windows 2000

This article was previously published under Q322862

SYMPTOMS

When you open Microsoft Management Console (MMC) and try to add a snap-in to MMC on your Microsoft Windows 2000-based computer, you may receive an error message similar to the following:
Run-time Error
Program: C:\Winnt\System32\Mmc.exe
R6025- pure virtual function call

CAUSE

This problem may occur if you install Microsoft Visio 2000 Enterprise Edition Service Release 1 (SR-1) and Microsoft SQL Server 2000 is already installed on the computer. When you install Visio, Setup replaces the following files on the hard disk with earlier versions:

Dtsui.dll
Sqlns.dll
Sqldmo.dll
Sqllex.dll
Sqlmmc.dll

RESOLUTION

To resolve this problem, follow these steps.
  1. NOTE: Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.

  2. Stop the MSSQLSERVER Service. To do so:
    1. Click Start, point to Settings, and then click Control Panel.
    2. Double-click Administrative Tools, and then double-click Services.
    3. In the right pane, right-click MSSQLSERVER, and then click Stop.
  3. Click Start, and then click Run.
  4. In the Open box, type cmd, and then click OK.
  5. Switch to the drive: Program Files\Microsoft SQL Server\80\Tools\Binn folder, where drive is the drive on which Windows is installed. To do so, type the following lines at the command prompt, pressing ENTER after each line:

    drive:
    cd Program Files\Microsoft SQL Server\80\Tools\Binn

  6. Remove the following files from the registry:

    Dtsui.dll
    Sqlns.dll
    Sqldmo.dll
    Sqllex.dll
    Sqlmmc.dll

    To do so, for each file in the list, type the following line at the command prompt, and then press ENTER, where FileName is the name of the file that you want to remove from the registry:

    regsvr32 /u FileName

    For example, to remove the Dtsui.dll file from the registry, type regsvr32 /u dtsui.dll, and then press ENTER.
  7. Rename each of the files that you removed from the registry in step 5 by using the .old extension. For example, to rename Dtsui.dll, right-click the file, and then click Rename. Type Dtsui.old, and then press ENTER.
  8. Insert the Microsoft SQL Server 2000 CD-ROM into the CD-ROM or DVD-ROM drive.
  9. Start Windows Explorer.
  10. Copy the following files from the x86\Binn or Enterprise\x86\Binn folder of the SQL Server 2000 CD-ROM to the Program Files\Microsoft SQL Server\80\Tools\Binn folder on the hard disk:

    Dtsui.dll
    Sqlns.dll
    Sqldmo.dll
    Sqllex.dll
    Sqlmmc.dll

  11. Register the files that you copied in step 9. To do so, for each file that you copied, type the following line at the command prompt, and then press ENTER, where FileName is the name of the file that you want to register:

    regsvr32 FileName

    For example, to register the Dtsui.dll file, type regsvr32 dtsui.dll, and then press ENTER.
  12. Restart the MSSQLSERVER Service that you stopped in step 1. To do so:
    1. Click Start, point to Settings, and then click Control Panel.
    2. Double-click Administrative Tools, and then double-click Services.
    3. In the right pane, right-click MSSQLSERVER, and then click Start.

Modification Type:MinorLast Reviewed:1/6/2006
Keywords:kberrmsg kbprb KB322862