The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clarification about HEAP
#2
You did right!! 8)
What was happening was an out of memory crash (there's a compiler switch to add tests for that).
The program compiles no heap if no strings are used. :!: So no need to set this to 0.
If you print some string into the screen you're actually using the heap (it depends on some optimizations; the compiler will try not to use it whenever possible).
128 bytes for temporary string management is really small! So better leave it as is. I don't recommend to set this value to something < 128. The heap area starts just after your program to the end of memory.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)