9
votes
Vote UpVote

TMonitor woes

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, ...
Favorite? Off-Topic? Eric @ 2011-05-25 11:34

Statistics

Visits: 1035
Votes: 9
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Fran├žois
jamiei
knight_killer
Leif Uneus
Primoz Gabrijelcic
runner
vcldeveloper
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)