If you recompile the source on R3, the bug will appear. Thread Local Storage is an emulation of the Windows API for thread-specific variables. It was a very good solution to a problem I faced in my work. Laurent suggested I keep the Intel version here to make it easier to keep it up to date for Intel. If he ever makes changes, I will update the version here.
Source code is included.
You can also see the BeWare entry here. I wrote this one evening to show my landlady what object- oriented programming is. This is a 100 line program that creates a window with a single view that draws a circle. Codewarrior projects are included for R3 PowerPC and R4 Intel. Ficus Kirkpatrick posted the basic source code in response to my request for some software I could use to tell if my MIDI port was working.