Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recursion limit?
#2
Recursion limits are set by the gcc compiler itself, and I don't know what they default to.

You can change the setting manually, by going into options, Compiler Settings, and editing that line for C++ Linker.  Add something similar to:

--stack,4194304

The above should increase the stack to 4MB in size, which from my testing is enough to run 100 recursions without any issues on my PC.

>>Every crash of this program increases the IDE RAM usage.

As for this, I just can't see how that's possible. The programs aren't linked. Your source code is compiled and then we simply shell out to that compiled version and run it -- it has no impact on the IDE whatsoever.

Any chance that you have a stray $DEBUG statement going on there somewhere? That might could explain the issue, as debug DOES link the two programs together via TCP/IP so you can watch the variable values and such as the program is running.
Reply


Messages In This Thread
Recursion limit? - by TerryRitchie - 03-12-2024, 02:55 AM
RE: Recursion limit? - by SMcNeill - 03-12-2024, 03:56 AM
RE: Recursion limit? - by TerryRitchie - 03-12-2024, 05:49 AM
RE: Recursion limit? - by Jack - 03-12-2024, 11:36 AM
RE: Recursion limit? - by SMcNeill - 03-12-2024, 12:03 PM
RE: Recursion limit? - by GareBear - 03-12-2024, 02:17 PM



Users browsing this thread: 2 Guest(s)