dbTalk Databases Forums  

Re: C# and DSO bug?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Re: C# and DSO bug? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kris Rudin
 
Posts: n/a

Default Re: C# and DSO bug? - 12-22-2003 , 12:49 PM






You are a friggn' genius!! :-)

Thanks!

Kris

"Dejan Sarka" <dejan_please_reply_to_newsgroups.sarka (AT) avtenta (DOT) si> wrote in
message news:%23WTYHRIyDHA.1932 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
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.











Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.