DelphiTools – Primoz Gabrijelcic recently reported a possible bug with TMonitor, in the more advanced side of TMonitor. However, when experimenting with it for DWS, I bumped on issues in the basic usage scenarios too, and reverted to using critical sections. I seems that as of Delphi XE, short of a patch, TMonitor is just a waste of 4 bytes per object instance. One of the basic usage of TMonitor I’m referring to would be to replace a critical section: TMonitor.Enter(someObject); try // protected code finally TMonitor.Exit(someObject); end; However, TMonitor is having a problem with the above, ...
Visits by Source
Users who voted for this posting