stackoverflow

C#: How to test for StackOverflowException

Say you have a method that could potentially get stuck in an endless method-call loop and crash with a StackOverflowException. For example my naive RecursiveSelect method mentioned in this question. Starting with the .NET Framework version 2.0, a StackOverflowException object cannot be caught by a try-catch block and the correspondin...

StackOverFlow exception GeckoFx

Hi there, I am using GeckoFX Multi 1.9.1.0 v.1 GeckoMulti and implementing the HttpActivityDistributor and HttpActivityObserver by using the following code: public void InitObserver() { nsIHttpActivityDistributor activityDistributor = Xpcom.GetService<nsIHttpActivityDistributor>("@mozilla.org/network/http-activity-distributor;1...

SAS stack overflow: PROC SQL reading dictionary.columns

I have a program in which I am reading dictionary.columns. There is a big program with lot of code before and after the program segment in which I read dictionary.column. The program used to work fine however it is giving error now. I have executed program 5 times it gave same error: STACK Overflow However when I am executing same pro...

C# - Entity Framework - An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll Make sure you do not have an infinite loop or infinite recursion. The below code is called on a success of this method: internal static List<RivWorks.Model.Negotiation.ProductsSold> GetProductsSoldByCompany(Guid CompanyID) { var ret = from...

Need an auto-complete multi-value selector like StackOverflow's "Interesting Tag" selector

I need a javascript control like the one used by stackoverflow for selecting/removing interesting and ignored tags. I really like the concept of creating little DIVs representing the item(s) you've selected, with an x to remove them. Where can I find a control like this? Did the creators of stackoverflow write this themselves? ...

How to navigate to a post as SO

Hi all, I really like the cool feature of Stackoverflow that navigate you to a post when you click the link from you personaly page. How to achieve that feature? Thanks! ...

Java stack overflow error - how to increase the stack size in Eclipse?

I am running a program that I've written in Java in Eclipse. The program has a very deep level of recursion for very large inputs. For smaller inputs the program runs fine however when large inputs are given, I get the following error: Exception in thread "main" java.lang.StackOverflowError Can this be solved by increasing the Java st...

Open Source PHP script/lib/cms for creating sites a-la StackOverflow?

I want to create site a-la StackOverflow but for different needs (not for Questions at all) (for some crazzzy geo mapping project=) so I need CMS... I vant it to be looking like StackOverflow... So is there any Open Source PHP script/lib/cms for creating sites a-la StackOverflow? ...

Merge sort from "Programming Scala" causes stack overflow

A direct cut and paste of the following algorithm: def msort[T](less: (T, T) => Boolean) (xs: List[T]): List[T] = { def merge(xs: List[T], ys: List[T]): List[T] = (xs, ys) match { case (Nil, _) => ys case (_, Nil) => xs case (x :: xs1, y :: ys1) => if (less(x, y)) x :: merge(xs1, ys) e...

WPF: Why would this cause a stack overflow exception?

When I add this style, it breaks my application with a StackOverflowException. <Style TargetType="GroupBox" BasedOn="{StaticResource {x:Type GroupBox}}" > <!-- <Setter Property="Background" Value="{DynamicResource WindowBackgroundBrush}" /> --> </Style> In case it matters, I'm using the ShinyBlue theme. Any ideas what would cause thi...

Stack Overflow exception (0xC00000FD) at winsock select function

Hello, I have an application which makes use of winsock. I/O part is handled on an other thread. And I am using blocking select method for sockets. But the point is that after 5-6 hours,my application gives 0xC00000FD exception, at the line of select function. As far as I know, this exception occurs when there is recursion, or very l...

Information bar like stackoverflow

Possible Duplicate: Stackoverflow Style Notifications in asp.net Ajax Hi, I am trying to make an information bar similar to the one here on stackoverflow. I found the Activebar jquery plugin. But I want to be able to customize it. I want a fading effect or a semi transparent background. Can someone please help. Thanks. ...

How do I create a dialog in javascript?

Hello, The goal is to create a similar to the flag dialog at stackoverflow that shows on clicking the 'flag' button located under a question,but since I'm new to web development I don't understand certain things. This is what I have: This is the markup for the button: <a id="flag-post-2239985" title="flag this post for serious probl...

Regarding stack reuse of a function calling itself?

if a function calls itself while defining variables at the same time would it result in stack overflow? Is there any option in gcc to reuse the same stack. void funcnew(void) { int a=10; int b=20; funcnew(); return ; } can a function reuse the stack-frame which it used earlier? What is the option in gcc to reuse the same...

Does a JVM exit when a stackoverflow exception occurs in one of the executing threads?

Does a JVM exit when a stack overflow exception occurs in one of the executing threads? ...

What's happened with SO search?

Move this question to meta-site, if you wish, I don't know how to do that. ...

How would one use Lucene to help implement search on a site like StackOverflow?

I've asked a simlar question on Meta StackOverflow, but that deals specifically with whether or not Lucene.NET is used on StackOverflow. The purpose of the question here is more of a hypotetical, as to what approaches one would make if they were to use Lucene.NET as a basis for in-site search and other factors in a site like StackOverfl...

Stack overflow in OCaml and F# but not in Haskell

I've been comparing for fun different languages for speed in execution of the following program: for i from 1 to 1000000 sum the product i*(sqrt i) One of my implementations (not the only one) is constructing a list [1..1000000] and then folding with a specific funtion. The program works fine and fast in Haskell (even when using foldl ...

C#, Asynchronous sockets Server/Client, StackOverflowException.

Hello. I'm writing an asynchronous server and client with C#. I took sample code from MSDN, modified and made it to send and receive messages several times. I tried to connect 5 and more clients to server and it worked but on 98th iteration each client throws an exception StackOverflow. Can anybody explain me why I get this error? I've r...

I get 'out of stack space' with crystl32.ocx / vbasic 5 when I run the report twice

The first several times I run the report it prints OK but when I try to UnLoad the form that's running it I get 'Out of Stack Space' error 28 and the program terminates with that error. The details point to to crystl32.ocx version 4.6.1.0 as the problem. How can I release stack space when the report is closed??????? ...