![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I had the same problem with the 2002 version. Changing the funcion attribute to [MTAThread] helped me. -- Dejan Sarka, SQL Server MVP Please reply only to the newsgroups. "Kris Rudin" <krudin (AT) nospam (DOT) com> wrote in message news:O4hrAWpxDHA.3436 (AT) tk2msftngp13 (DOT) phx.gbl... 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 did just find a post that mentioned something about SP3 on Analysis services breaking it, because it works with SP2.) 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |