Microsoft KB Archive/219278

= FIX: OLAP MDX Application Gives Application Error in Visual Basic IDE =

Article ID: 219278

Article Last Modified on 11/3/2003

-

APPLIES TO


 * Microsoft SQL Server OLAP Services
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q219278



SYMPTOMS
When you load the OLAP Visual Basic MDX sample in Visual Basic 6.0 (\Program Files\OLAP Services\Samples\MDXSample) and run from the IDE, the following error occurs:

The instruction at 'hex address' references memory at 'hex address'. The memory could not be written.



RESOLUTION
Here are two ways to work around this behavior:  Make the MDXSampl.exe file from the File menu and then run it.

-or-  Comment out the following lines in the fControlsAvailable function for SplitRegion User control: If UserControl.ParentControls.Count < 1 Then fControlsAvailable = False Else fControlsAvailable = True End If                   

After making this code change you can run the sample from the IDE. However, one of the windows that lists the individual members will not be available and you will not be able to resize the child windows.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

