I have written a C# .NET application that uses Decision Support Object Type
library 5.1 to access an analysis server. The problem is that when the
application ends (and all processes complete normally), I get a fatal error:
"The instruction at 0x.. referenced memory at 0x... The memory could not be
read."
(The hex addresses are different)
I searched the MS KB and came up empty. I googled the newsgroups and found
one reference to this, and a reply saying "Gee this seem to be a bug." But
nothing more.
I even wrote a brand new app that was stripped to the bones (see code
below), and still got the error.
We tried this with both .NET framework 1.0 and .NET framework 1.1 and Visual
Studio 2002 and Visual Studio 2003. Still got the error.
Here is the code:
using System;
using System.IO;
using DSO;
namespace DSOtest
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("Starting program");
Server dsoServer = new DSO.ServerClass();
dsoServer.Connect("vmproj2003");
dsoServer.CloseServer();
dsoServer = null;
Console.WriteLine("Ending program");
}
}
}
I anyone has any ideas, I'd sure appreciate it!! :-)
Kris Rudin, MCP, MS
Senior Software Engineer
Aurora Consulting Group, Inc.
Kris Rudin - 22 Dec 2003 21:00 GMT
Someone on another NG posted the solution:
The threading must be set to MTA, not STA, for DSO.
:-)
> I have written a C# .NET application that uses Decision Support Object Type
> library 5.1 to access an analysis server. The problem is that when the
[quoted text clipped - 62 lines]
>
> Aurora Consulting Group, Inc.