Home > Back-end >  Using DELPHI thread class custom stack size problem.
Using DELPHI thread class custom stack size problem.

Time:09-27

I now use the thread class to create a thread. The thread with recursive processing. Large amount of data. Sometimes will run into a stack overflow.
Want to ask about if use TThread to create change the default stack size?

CodePudding user response:

Compile-time stack size can be set with compiler options, we may not be able to compile well should be changed,

CodePudding user response:

reference 1st floor Playmaster response:
compile-time stack size can be set with compiler options, we may not be able to compile well should be changed,

Where is the next modify compile options? My is XE

CodePudding user response:

reference 1st floor Playmaster response:
compile-time stack size can be set with compiler options, we may not be able to compile well should be changed,


A test. This method is invalid

CodePudding user response:

DELPHI the default stack size is 1 m, this can be through the Project - & gt; Options-> Would - & gt; Max Stack size to change its size,
To release in time for the recursion
  • Related