Visual Basic Q&A

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘exception error’

BUG: Error in CoolBar Event Can Cause Hanging or Exception

Symptoms
When using a CoolBar control, your compiled application hangs or generatesan exception error or invalid page fault (IPF.)
Resolution
An unhandled error occurred in one of the CoolBar’s Events.

FIX: “Unhandled exception” error message when you use Visual Basic 6.0 components from managed code

Symptoms
When you use Visual Basic 6.0 components in your managed code, you may receive “Unhandled Exception” error messages.
Resolution
Older versions of the Visual Basic 6.0 runtime (Msvbvm60.dll) have a shutdown problem that manifests as an “Unhandled Exception” error when you use Visual Basic 6.0 components from managed code.

BUG: “Type System.IO.IOException” error message after you upgrade to Visual Basic .NET or Visual Basic 2005

Symptoms
After you upgrade your Microsoft Visual Basic 6 application to Visual Basic .NET or Visual Basic 2005, you may receive the following “exception” error message:

An unhandled exception of the type ‘System.IO.IOException’ occurred in microsoft.visualbasic.dll.
Resolution
This behavior occurs when all of the following conditions are true: The Visual Basic Upgrade Wizard upgrades Visual Basic 6 code that uses the Open statement to open a given file.
-and-You do not explicitly specify shared access to open this file.
-and-You attempt to open this file a second time without first closing it.NOTE: You may also receive this error message if you try to open a given file a second time (without closing the first file handle) by using the FileOpen function in Visual Basic .NET or in Visual Basic 2005 without specifying the Share argument.