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 ‘Symptoms’

Output parameters are not returned when you run an ADO.NET command in Visual Basic

Symptoms
Output parameters do not appear to be initialized or return a wrong value when executing an ADO.NET command.
Resolution
This problem can occur for the following reasons: Output parameters are returned at the end of the data stream when using a DataReader object.The Direction property of the parameter is not set properly.

BUG: The scale value for Oracle numeric parameter is ignored

Symptoms
When you set the scale for a parameter of type NUMBER, it does not affect the value of the parameter that is passed to the database.
Resolution
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the “Applies to” section.

BUG: Creating circular references between UserControls closes Visual Basic .NET without a warning

Symptoms
When you use Visual Basic .NET to create two Windows Control Libraries (UserControls) that have a circular reference between them, and then you try to add one control onto another, the integrated development environment (IDE) may close (crash) without warning.
Resolution
The stack overflow exception is not properly trapped.