Squeak SmalltalkJoker Squeak Smalltalk : Morphic : prevnext Single Thread UI

>My feeling is that there must be races condition problems with the UI
>thread and my background process.
>Are there any 'trade-off' about UI and multi-threading issues ?
Very much so. Much of Morphic is not thread-safe and assumes that no
other Process is making concurrent adjustments to the World, its
submorphs or their attributes. The smart thing to do is to have your
background process do non-UI stuff (I see #testODBC, so I assume this
would include reading a database) and then let the UI process handle
the UI part of the task. Your background process could look something
like:
 ...
 records _ self readDatabase.
 WorldState addDeferredUIMessage: [listMorph addTheseRecords: records].
 ...
Cheers,
Bob