Exception without treatment: System.Stackoverflowexception

Asked

Viewed 1,266 times

0

My project Winforms C# has a routine that returns approximately 6000 items. Every time the routine is shown in Connection.Open() of DataSet to StackOverflowException. I’ve never seen this mistake. What can cause it?

  • Either the question is unclear or is already answered in https://answall.com/q/95824/101 with complement in https://answall.com/q/323954/101.

  • believe this to be the case for you: https://stackoverflow.com/questions/33290694/sqlconnection-open-returns-a-stackoverflow-exception

1 answer

0

System.StackOverflowException

An exception StackOverflowException is launched when the runstack exceeds by having many nested method calls.

Associated tips: Make sure you don’t have an infinite loop or infinite recursion. Many method calls are usually indicative of deep or unrestricted recursion.

Source: msdn

  • If the OP is saying that the Exception is released when there is Connection.Open(), what is generating this exception is probably not in the case of your answer...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.