Microsoft KB Archive/193089

= PRB: Unexpected Error Occurs in Code Generator or Linker =

Article ID: 193089

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q193089



SYMPTOMS
When compiling an upgraded Visual Basic 5.0 project in Visual Basic 6.0, you may received the following error message:

"Unexpected Error Occurred in Code Generator or Linker."



CAUSE
This is caused by the existence of a project.pdb (symbol) file in the directory into which you are compiling the project.



RESOLUTION
There are two possible resolutions to this issue:


 * Delete the existing .pdb file.

-or-
 * Compile the project (exe or dll) into a different directory.



Steps to Reproduce Behavior
Create and compile a Visual Basic 5.0 project:


 * 1) Create a Standard EXE project in Visual Basic 5.0. Form1 is created by default.
 * 2) Select Project Properties from the Project menu.
 * 3) Select the Compile tab.
 * 4) Select Compile to Native Code and check Create Symbolic Debug Info.
 * 5) Save and compile the project.

Upgrade and compile in Visual Basic 6.0:

 Open the Visual Basic 5.0 project with Visual Basic 6.0. Compile the project and note that you receive the following error message:

Unexpected Error Occurred in Code Generator or Linker.



Additional query words: kbdss kbDSupport kbVBp kbVBp600 kbCompiler kbVBp500

Keywords: kbprb KB193089

-

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

© Microsoft Corporation. All rights reserved.