| | |
Error using recursion
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Nobody can help you if you don't post the code. Maybe your recursive function didn't know when to stop and cause stack overflow or something else just as bad. Check to see if there is something in the function that will make the recursion stop. Also make it stop after only a few recursions and see if the same error occurs.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Did you declare a pointer without allocating memory?
We're really completely in the dark without any code.
C++ Syntax (Toggle Plain Text)
type_of_var *p; p = new type_of_var; // allocate memory
We're really completely in the dark without any code.
Last edited by chococrack; Oct 18th, 2008 at 3:23 pm.
I would love to change the world, but they won't give me the source code
•
•
Join Date: Apr 2008
Posts: 129
Reputation:
Solved Threads: 22
or may be your code look like this
cpp Syntax (Toggle Plain Text)
void foo() { char* tmp = new char[1024]; foo(); }
Last edited by ivailosp; Oct 18th, 2008 at 3:22 pm.
![]() |
Similar Threads
- Stack Overflow Error (C++)
- URGENT: JSP - StackOverFlow Error (JSP)
- Recursion (Java)
- Prefix expressions(recursion) (C++)
- OutOfMemory Error (Java)
- Run-time Error when printing Array Contents. (C)
Other Threads in the C++ Forum
- Previous Thread: getting command into Unix Shell
- Next Thread: Tree traversal
Views: 396 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct temperature template templates text tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






