[win32] tthread.create doesn't raise exception if a thread cannot be created
Original Reporter info from Mantis: luca @olivluca
-
Reporter name: Luca Olivetti
Original Reporter info from Mantis: luca @olivluca
- Reporter name: Luca Olivetti
Description:
When you try to create a thread through TThread.Create, no exception is raised if the thread cannot be created, so there's no way to check that the thread has been successfully created.
Under Linux an EThread exception is raised.
Steps to reproduce:
Run the attached program. Under windows you'll see that no exception is raised (you'll see numbers from 1 to 10000) while much more less threads are really created.
Under Linux you'll see the counter stops at the first exception.
Mantis conversion info:
- Mantis ID: 13798
- OS: Windows
- OS Build: XP
- Platform: i586
- Version: 2.2.4
- Fixed in version: 2.4.0
- Fixed in revision: 13222 (#88f6b885)