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?