stackoverflow

C# binary search tree - stack overflow - debug

I am a newbie learning C# after C++. VS2010. Trying to debug my code, I come across weird empty lines in the "locals" frame. The debugger just quits after a few seconds of me staring at these empty lines. Please check it out: http://pastebin.com/KZbfy8JF Thanks. I've spent at least 3 hours looking for solutions and playing around wit...

Why does stack overflow throw no error in Visual C++?

In Microsoft Visual C++ 2010 I created a program which delibrately causes a stack overflow. When I run the program using "start debugging" an error is thrown when stack overflow occurs. When I run it with "start without debugging" no error is thrown and the program just terminates silently as if it had successfully completed. Could someo...

Eclipse - Stack Overflow Errors

Hello, since some time I'm having problems with Eclipse. When opening any file with class which extends one specified class (Presenter), an error occures: I've noted, that problems occurres only when loading the mentioned class - Presenter. When I delete "extends Presenter" or when I delete the file, which contains class Presenter, p...

XSL processor stack has overflowed - can't understand why

Hello guys, I'm trying to conditionally display the content of HTML page depending if a document being generated for a recognised company or not. However, the transformation doesn't work and I can't understand why :( I use MSXML3.0 as transformer and oXygen as IDE, which gives the errors I presented below. What I do is to construct a ...

UVa 3n+1 Case Recursive Stack Overflow

hi, im trying to solve this very first challange but i get stuck, i like fast program, so i decided to use recursive method not iteration unfortunately, when the input is a big integer (100000 > input > 1000000), its often crash so i debug it, and it shows stack overflow error please help me, i dont know what to do, ive tried to chang...

C# - Finding the Boundaries of an Image (not the size)

Hello ! I'm developing an application to split an image grid equally and center the images (based on their similarity). So far, I could manage to fix a grid of images with small sizes, but whenever I try a larger "sprite" size (100x100, for instance), I get Stack Overflow error. Yes I'm using recursion, but whenever a pixel is checked,...

Debugging Stack Level too deep in Ruby

I have ruby program that is running into a stack level too deep (SystemStackError) error, ending on datamapper: from /usr/local/lib/ruby/gems/1.8/gems/dm-core-1.0.0/lib/dm-core/collection.rb:510:in `each' from /usr/local/lib/ruby/gems/1.8/gems/dm-core-1.0.0/lib/dm-core/query/conditions/comparison.rb:616:in `map' from /usr/local/lib/ruby...

smallish string array assigment causes segmentation fault...

Hello, My original code (following) gives a seg fault at the string array assignment at about num_atoms=150,000: int num_atoms=dimension[0]*dimension[1]*dimension[2]*prim_lat.size(); double superlat[num_atoms][3]; string current_occ[num_atoms]; Thinking this was a first instance of me hitting a stack overflow issue, and thinking you c...

How to obtain stacktrace when tracking memory leaks?

Hi, I've written a memory tracking system in c++ using Detours to patch the various memory allocation functions. When I receive a call to malloc in addition to the malloc I also store the stacktrace (so I can pin point the leak). The only reliable way to obtain an accurate stacktrace is to use StackWalk64 (I tried RtlCaptureStackBackTr...

How does this website - stackoverflow handle the user authentication?

Hi all I am wondering how does this website - stackoverflow handle the user authentication? It accept yahoo, google, facebook, myspace, openID etc to login. And most importantly with asp.net. I want to build something like this too. Could something could provide some reading to start with? Bryan ...

How to validate geographic locations (like on careers.stackoverflow.com)?

On http://careers.stackoverflow.com, the edit page under http://careers.stackoverflow.com/cv/edit – section Where do you want to work? – has the neat property, that it validates geographic locations and gives them some canonical name. E.g. I enter Subotica and it will complete to Zubotica, Severna Bachka, Serbia Does it use any...

No Stackoverflow: auto object inside while loop

I was going through someone's code where I came across a thread: while(TRUE) { ...... STRUCT_MSG_SYS_HEADER sysHdr; ..... .... } There are five threads like this, My point is that "STRUCT_MSG_SYS_HEADER sysHdr;" will lead to stackoverflow after some time or days... (Not tested though). So I decided to write a simple sample appl...

Tips on troubleshooting an EStackoverflow exception in the Delphi IDE

I'm running Delphi 2009. When I try to view a form in the form editor I keep getting a stack overflow. So I did what anyone else would do. I used Delphi to debug itself or rather another instance of the IDE. So I know where the overflow is occuring I just don't know what to do about it. There is a custom component on this form that is i...

How can the awesome SO calendar widget be made to work in IE?

There is, what I think is one of the best uses of CSS over images (the calendar icon) located at: http://chat.meta.stackoverflow.com/chats/transcripts/139?offset=120 But it doesn't work in IE8. Is it possible to convert this to work with IE? I suppose we could use this jQuery code at: http://www.methvin.com/jquery/jq-corner-demo.html ...

Just added the Facebook Like function to my homepage - get Stack Overflow at Line 2 - What now?

I recently added a Facebook Like button to my web site home page - www.wideworldofhockey.com - using FBML. It works fine under Firefox. When I open the page under Internet Explorer, right away, I see a "Stack Overflow at Line 2" (sometimes line 3) popup. What is causing this? Is there something I still have to code in the HTML? Do I...

Looking for StackExcange/Overflow app/API for nokia's symbian s60v5

Is there any ready-to go project of app for StackExchange sites for nokias symbian? (somethn' like facebook app) Or maybe any code-base/reference/examples, from witch i can start to develop that kind of app? ...

Documentation for SO reputation graph (Flot)

Hello, is there any documentation available to build Flot graph similar to what we can find in the SO profile/reputation tab? from the source code I can see that data is queried at this address: /users/rep-graph/341106/" + ranges.xaxis.from.toFixed(1) + "/" + ranges.xaxis.to.toFixed(1) but I don't know the values from and to fields i...

Increase stack size when compiling with mingw?

Hi, I'm writing a recursive flood-fill algorithm to find connected components in an image, my code compiles and runs well with MSVC 2008 compiler; but the mingw-compiled binary crashed at runtime. After I converted the algorithm to non-recursive with std::stack, everything goes well. But what if I must use recursive algorithm in some...

Opinions, Suggestions on using a thread in IIS 7 hosted ASP.Net application to avoid a Stack Overflow Exception

In a ASP.Net web application, when you have a stack intensive operation to run, a stackoverflow exception is thrown on IIS when the stack size crosses the IIS set limit of 256K. A regular winform application however has a limit of 1MB. So the exception would not occur when running the same operation in a Winform application. There is no...

How does Stackoverflow's "Post Your Question" button stay disabled until question gets submitted?

I am using asp.net webforms; I want to submit a form and keep the button disabled until it gets saved to my database, exactly like Stackoverflow. Any suggestion? protected void Lb_Save_Click(object sender, EventArgs e) { //disable my button //Do a DB insert //enable my button } EDIT: I'll do a client-side validation fir...