I was thinking that maybe the types aren't thread safe, but Sytem.Int32 clearly is:
Have you tried setting the default instance of KartenHöhe ie-All members of this type are thread safe. Members that appear to modify instance state actually return a new instance initialized with the new value. As with any other type, reading and writing to a shared variable that contains an instance of this type must be protected by a lock to guarantee thread safety.
Instead of:Code:Private KartenHöhe As Integer = -1 Public ReadOnly Property KartenHöhe_ As Integer Get Return Me.KartenHöhe End Get End Property
[code]Code:Private KartenHöhe As Integer Public ReadOnly Property KartenHöhe_ As Integer Get Return Me.KartenHöhe End Get End Property




Reply With Quote