Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/RTL/Delphi/Thread support    [ Add a report in this area ]  
Report #:  77203   Status: Open
Allow thread stack size to be specified when creating the thread
Project:  Delphi Build #:  11.0.2902.10471
Version:    11.2 Submitted By:   Luigi Sandon
Report Type:  New Feature Request Date Reported:  8/31/2009 4:06:23 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   272999
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
4.00 out of 5
Total Votes: 76
In Delphi 2007 TThread.Create specifies the standard thread stack size passing 0 for the dwStackSize parameter.

  FHandle := BeginThread(nil, 0, @ThreadProc, Pointer(Self), CREATE_SUSPENDED, FThreadID);

An overloaded constructor that could set per-thread stack size would be welcome.
Steps to Reproduce:
See description.

Lucian Radulescu at 8/31/2009 7:10:22 PM -


Erik van Bilsen at 1/21/2011 9:57:08 AM -
As concurrent programming (and increased number of threads) is getting more and more important, customizing a threads stack size becomes a necessity.


Server Response from: ETNACODE01