TThread destructor incompatible with Delphi
Original Reporter info from Mantis: hnb
-
Reporter name: Maciej Izak
Original Reporter info from Mantis: hnb
- Reporter name: Maciej Izak
Description:
TThread destructor from FPC RTL works in very different way than in Delphi (very problematic in libraries for FPC and Delphi).
In destructor is omitted Terminated and WaitFor.
Example patch:
destructor TThread.Destroy;
begin
if not FExternalThread and not Terminated then begin
Terminate;
if FSuspended then
Resume;
WaitFor;
end;
Mantis conversion info:
- Mantis ID: 29470
- Version: 3.1.1
- Monitored by: » Vincent (Vincent Snijders)