The problem is that application developers could still create their
own
Threads and ThreadGroups, right? That is, I presume Pivot doesn't
prevent
that.
Correct - in fact, it is encouraged. Pivot provides a Task class that
is used to simplify execution of background tasks, which run on
separate threads.
There's an uncaught exception handler property on Thread:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)
This may actually be the best solution. Instead of providing a
platform hook into the event loop, callers can simply attach an
uncaught exception handler to the UI (event dispatch) thread.
G