FIX: OLAP MDX Application Gives Application Error in Visual Basic IDE (219278)



The information in this article applies to:

  • Microsoft SQL Server OLAP Services 7.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

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

REFERENCES

OLAP Services Books Online

Modification Type:MajorLast Reviewed:11/3/2003
Keywords:kbBug kbDatabase kbfix kbMDACNoSweep kbVS600sp3fix KB219278