stackoverflow

Why Access Violation for cout And Stack Overflow for printf

Hi, I wanted to know Why Access Violation occurs for cout And Stack Overflow for printf in the following two code snippets. I wanted to know why Access Violation for the First code instead of the Stack Overflow. First Code Which i get Access Violation : void Test(); void Test() { static int i = 0; cout << i++ << endl; ...

Without using recursion how can a stack overflow exception be thrown?

Without using recursion how can a stack overflow exception be thrown? ...

C++ stack overflow - visual studio 2008

I declared and initialized an array having [100][1000][1000] char elements(100MB), it didn't say about a stack overflow at the first time.But when I running it after a while it throws a Stack overflow exception! I increased the -Stack Reserve Size- to 200,000,000 in project options->linker->system but it didn't worked! I'm working using ...

C# catch a stack overflow exception

Hello, I got a recursive call to a methode that throw a stack overflow exception. The first call is surrounded by a try catch block but the exception is not caught. Do the stack overflow exception behave in a special way ? Can I catch/handle properly the exception ? NB : if relevant : the exception is not thrown in the main thread...

How should I design my rating system?

I'm building a website where users may register and create shopping guides. I want to award them points for creating shopping guides, adding stores and adding brands. It will also be possible for other users to rate the shopping guide. I'm considering to award the owner of the shopping guide more points, if the guide is rated high. But...

ASP.Net Ajax Stackoverflow style Vote Button

I've been looking to implement a StackOverflow style voting system on my ASP.NET site using ASP.Net Ajax. I've looked at the controls in the toolkit and generally been very impressed but nothing quite suits my needs. I like the Rating control, but I'd rather use Up/Down voting instead of a vote out of 5. The ToggleButton is also close to...

Getting Stack overflow with GNU CLisp (Windows)

I'm getting "Program stack overflow RESET" message while running my program. So I set added a counter to see how many times I'm recursively calling the main function in my program. Turns out that it is around 30,000 times and the data I'm stacking are lists of length around 10 elements, which I think are not so many. My question is wheth...

Stack.Overflow error - WinForms App Vs. WinService

I have a small code sample: private void MonitorItems() { if (someCondition) { dateSelected = DateTime.Now; GetAllItems(); } else { if(allItems.Count>0) CheckAllItems(); } Monito...

Cannot dump stackoverflow XMl file into SQL server 2008

Cannot dump stackoverflow XMl file into SQL server 2008. Could you please explain in step-by-step. ...

Explanation of stack overflow when using read on a small file and a questionable workaround

I hope the question explained my problem. I would also be grateful if the workaround that "works" is explained. The traditional way of reading a file (that i know of) int fd; char buffer[MAX]; while(read(fd,buffer,MAX)>0) { buffer[MAX]='\0'; write(sockfd,buffer,MAX); memset(buffer,NULL,MAX); } was causing ...

Stack Overflow in Fortran program

I have a problem with my simple Fortran program. I am working in Fortran 77, using Compaq Visual Fortran. The program structure must be in the form of a main and a subroutine, because it is part of a big program related to the finite element method. My issue is that I would like to set the values 10000 & 10000 for NHELE and NVELE respec...

Cant track down access violation 0xC00000FD

Im using VS2008 and My MFC application has started to crash when setting breakpoints or running to cursor. I get lots of errors like this:- First-chance exception at 0x78a5727c (mfc90ud.dll) in MyApp.exe: 0xC0000005: Access violation reading location 0xfffffffc. First-chance exception at 0x00000000 in MyApp.exe: 0xC0000005: Access viol...

Can you give an example of stack overflow in C++?

Can you give an example of stack overflow in C++? Other than the recursive case: void foo() { foo(); } ...

Clojure: Simple factorial causes stack overflow

What am i doing wrong? Simple recursion of few thousand deep throws "StackOverflowError" If the limit of Clojure recursions is so low, how can I rely on it ? (defn fact[x] (if (<= x 1) 1 (* x (fact (- x 1)) ))) user=> (fact 2) 2 user=> (fact 4) 24 user=> (fact 4000) java.lang.StackOverflowError (NO_SOURCE_FILE:0) ...

System.StackOverflowException

hi everyone, please help me regarding System.StackOverflowException i m desing a .aspx to write records into the database i used 4-tier archietecture to implement this everything are working but when im compiling the page then its displyae the fields to insert the data ,when i insert the data to those field and clik the submitt button th...

div on the flash movie

elgg.in/works/momslingolougne/ this is the working link. My problem is here when we enter the login section . that time show a popup window. but ther is girl vector image . that is fglash file. the flash file is overlapping the popup div. i have tried wmode="transparent" and position:absolute; z-index:0 but not working. ...

Is there any way to determine the available stack space at run time?

I know that stack size is fixed. So we can not store large objects on stack and we shift to dynamic allocations (e.g. malloc). Also, stack gets used when there is nesting of function calls so we avoid recursive functions as well for this reason. Is there any way at runtime to determine how much stack memory is used so far and how much is...

What frontend editor for Rails?

Hello everybody! At the moment I am building my new Website. On my Website, users are allowed to post some code (Java, Rails, Ruby, HTML, CSS,...). Now I want to format that code in frontend like on Stackoverflow. Is there a plugin I can use in Rails? I had a look on some rich text editors, but most of them did not do what I wanted them ...

Need to prevent PHP regex segfault

Why does the following segfault, and how can I prevent it? <?php $str = ' <fieldset> <label for="go-to">Go to: </label> ' . str_repeat(' ', 10000) . '<input type="submit" value="Go" /> </fieldset> </form>'; preg_match_all("@ </?(?![bisa]\b)(?!em\b)[^>]*> # starting tag, must not be one of several inline tags (?:[^<]|<...

IIS 6.0 hangs when serving a web-service

Hi guys I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the web-server (win 2003 server)it throws some generic error and crashes the IIS worker process(W3wp). If I try to attach visual stu...