problem with dll in an application

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

I am writing a c# class that has a gui to perform customised tasks for SAS
Enterprise Guide version 3.0.

I have an application that runs some regression analysis based on some
choices that a person would make. The class is built into a dll file and
loaded into the SAS Enterpirse Guide application.

However i dont receive any build errors but I still get the following error
in my SAS Enterprise guide application when it calls the dll.

"System.StackOverflowException

Exception of type System.StackOverflowException was thrown."

Can someone tell me the likely cause and how i can debug this in the C#
code?

Thanks

Any help greatly appreciated.

Doug
 
do you have recursive functions in your code? that may cause stack to be
filled in a few seconds of time...
i recommend debugging your code line by line...
 
Not sure exactly how you are going to get through this, but a stack overflow
means you have consumed all of the program specific memory (the stack). If
you are not doing anything else, it is the other app and perhaps Interop that
is killing you. If you have loaded the stack with tons of local variables and
perhaps a lot of structs that should be classes, that is the first area to
look into clearing.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Have you got a property that accesses itself?

such as:

int MyInt
{
get{ return MyInt; }
}

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Have you declared an object that references itself?

class aClass
{
private aClass ob;
aClass()
{
ob=new aClass();
}
}

Regards,

Jv
 
Back
Top