TROComplexType.TryGetAttribute is not thread-safe

delphi

(Alexander Pustotin) #1

Hi

I use RO_VERSION = '9.5.111.1399'.

I found that TROComplexType.TryGetAttribute incorrectly works in a multi-thread environment.
The reason is that access to the global gComplexType_Attributes is not synchronized at all.

IMO using the similar approach as TRORttiCache (TRORWSync) would solve this bug.

regards


(RemObjects) #2

Thanks, logged as bugs://81773


(RemObjects) #3

bugs://81773 got closed with status fixed.