name clash Windows.TCriticalSection and SyncObjs.TCriticalSection
Original Reporter info from Mantis: ppopov99
-
Reporter name: Peter Popov
Original Reporter info from Mantis: ppopov99
- Reporter name: Peter Popov
Description:
There apparently is a name clash between Windows.TCriticalSection and SyncObjs.TCriticalSection. This is inconvenient, as one is integer, the other is a class. This also breaks delphi code which uses SyncObjs. The developers should consider renaming Windows.TCriticalSection to something like Windows.TRTLCriticalSection or Windows.SYSCriticalSection.
Additional information:
The following program does not compile due to a name clash....
program Test;
uses SyncObjs, Windows;
var
cs: TCriticalSection;
begin
cs := TCriticalSection.Create;
cs.Destroy;
end.
Mantis conversion info:
- Mantis ID: 8578
- Monitored by: » ppopov99 (Peter Popov)