stackoverflowexception

C# Stackoverflow in recursive deleting directory operation

Hey guys ;) I'm currently rewriting a file deletion tool with safe deleting algorithm and stuff. Wenn I'm trying to browse through a directory recursivly and to delete all files in there and all subdirs etc. the debugger will throw a stackoverflow exception. Code : private void wipeFile(string file) { bool ret = false;...

Recursive computation expressions

In a previous question I was told how to rewrite my computation expressions so it uses tail recursion. I rewrote my code but still got a StackOverflowException. To locate the problem I wrote some small code using a state monad (taken from this blog entry): type State<'a, 's> = State of ('s -> 'a * 's) let runState (State s) initialSta...

Xml root node not closed

Hi, I'm using xmlwriter to create an xml document. The xml document looks like this: <?xml version="1.0" encoding="utf-8" ?> <ExceptionsList /> How can i prevent the /> and appropriately end the root node? Because of this, i can't append anything to the root node. My code for creating the xml file looks like this: string formatD...

Recursive loop on List<> causing stackoverflow

I have a List<> of objects containing two strings and a DateTime. I want to build another list of the same objects containing only the last unique items using the two strings as keys and the last DateTime value. In SQL think the following: SELECT col1, col2, MAX(datetime) FROM table GROUP BY col1, col2 This gives the unique list of co...

StackOverflowException in .NET 4

The following code works fine until I upgrade to .NET 4 (x64) namespace CrashME { class Program { private static volatile bool testCrash = false; private static void Crash() { try { } finally { HttpRuntime.Cache.Insert("xxx", tes...

Trouble with StackOverFlow Exception

Hi I m having a problem with satckloverflow exception it comes from a method and does not get caught i m using c#.net 3.5 please help... ...

How to avoid this stackoverflow exception?

Here is the situation, I am developing a binary search tree and in each node of the tree I intend to store the height of its own for further balancing the tree during avl tree formation. Previously I had an iterative approach to calculate the height of a node during balancing the tree like the following. (The following code belongs to a...

How to increase to Java stack size?

I asked this question to get to know how to increase the runtime call stack size in the JVM. I've got an answer to this, and I've also got many useful answers and comments relevant to how Java handles the situation where a large runtime stack is needed. I've extended my question with the summary of the responses. Originally I wanted to ...

c# settings + StackOverflowException

I have a usercontrol in my wpf application which is causing a stackoverflowexception to be caught when it is instanced more than once. I tried to debug the cause of the exception and it is raised during InitializeComponent of my Usercontrol. When I enter InitializeComponent it jumps over to the app.xaml.cs codebehind and reads values wh...

I can't solve this problem...( After a while my app error this...)

I connect a ıp cam(jpeg), and show this image, and ı repeat continually, After a while my app error this. And I tested other phone and showed this one. 10-28 15:12:51.525: ERROR/AndroidRuntime(675): Uncaught handler: thread Thread-11 exiting due to uncaught exception my codes: public void parse(InputStream is){ try { if (!type...