ThreadWithProgressWindow bug?


#1

Today I discovered something weird. When I inherit from ThreadWithProgressWindow and in its run() method I only put the following line:

while (1) setStatusMessage(T(“hello”));

then it will crash after less than 1 second causing an exception.

Why is that? My guess is that it has something to do with the fact that String is not Thread-safe, so there should be some lock before setting the String in setStatusMessage() since the String is read from another Thread, no?


#2

But it does use a lock in there… (?) I guess you’re on an old version?


#3

Sorry, yes I don’t use the tip on this project, true. Will check this.