Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / December 2003

Tip: Looking for answers? Try searching our database.

C# and DSO bug?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kris Rudin - 20 Dec 2003 00:56 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.