WaitForThreadTerminate doesn't return when the timeout expires.
Original Reporter info from Mantis: lagprogramming
-
Reporter name:
Original Reporter info from Mantis: lagprogramming
- Reporter name:
Description:
WaitForThreadTerminate doesn't return when the timeout expires. It acts as if the timeout value has an infinite value no matter what.
This happens when cthreads is used, in Windows it looks fine.
Additional information:
I've been looking at bug
http://bugs.freepascal.org/view.php?id=16492
and at
http://www.freepascal.org/docs-html/rtl/system/waitforthreadterminate.html
If the timeout parameter is there only for compatibility then I think the documentation should clearly state that. If it's not, then this bug might be related to the bug mentioned above.
I've attached a small project that works fine when cthreads are not used.
Mantis conversion info:
- Mantis ID: 25711
- Version: 2.6.2
- Fixed in version: 3.0.0
- Fixed in revision: 1087 (#8922268c)
- Target version: 2.6.4