473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

problem with dll in an application

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
Nov 17 '05 #1
4 1108
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...
"Doug" <qu********@hotmail.com> wrote in message
news:43***********************@news.optusnet.com.a u...
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

Nov 17 '05 #2
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!
***************************
"Doug" wrote:
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

Nov 17 '05 #3
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.

"Doug" <qu********@hotmail.com> wrote in message
news:43***********************@news.optusnet.com.a u...
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

Nov 17 '05 #4
Have you declared an object that references itself?

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

Regards,

Jv

"Doug" wrote:
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

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
4
by: pjdouillard | last post by:
Hello all, Here is the context of my problem: We have an ASP.NET 1.1 application that has its own application pool setup and that runs under the identity of a NT Domain service account (this...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
1
by: Steven M. | last post by:
Greetings... I need desperate help with my problem. I guess the solution is related in some way with the cookies getting lost in the authentication process working with some web servers. ...
1
by: svijay | last post by:
hi I have got a strange problem. May I know any solution for this. Here is the detailed description about the problem We have got a mainframe system and also production and development...
22
by: roadrunner | last post by:
Hi, Our website has recently been experiencing some problems under load. We have pinpointed a particular function which slows dramatically when we have these problems. Normally it should execute...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
2
by: Sin Jeong-hun | last post by:
I created a windows form application. It has a Threading.Timer and when the timer ticks it does some work and show a popup window. The problem is that while this program is running if the user...
6
by: Tony Johansson | last post by:
Hello! We have a C#.ASP.NET application that runs on a IIS 6. The application contains actually several asp pages but there is no GUI. The application receive an xml file that is processed....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.