Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recursion limit?
#3
(03-12-2024, 03:56 AM)SMcNeill Wrote: 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.
Nope, no $DEBUG in use.

I narrowed down the flickering too. It only happens when I press the left or right SHIFT, CTRL, or ALT keys. The IDE line numbers and current line highlighter flicker as I'm typing this every time a shift key is pressed. While this forum editor is active I can repeatedly press the shift key to make the IDE flicker at will. When I press either ALT key the IDE menu letters light up too. If I hold the ALT key the IDE menu stays lit up but the browser, and not the IDE, picks up the keystrokes, such as ALT-F.

It's as if for a very brief moment the IDE window is getting then losing focus. You should be able to recreate what I'm seeing by running the code I posted above and while it's running press the shift key repeatedly. If not then it must be something in my computer that doesn't like one of the updates.

I just opened v 3.11.0 and the flickering does not happen with any of the keys.

I do use two screens if that makes a difference.

I'll play around with the stack setting to see what I get as well, thanks for pointing that out.

Terry
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
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: 1 Guest(s)