Overview
| Artifact ID: | 4e439d2e7ff812cc5071d60d81de6070157dbe32 |
|---|---|
| Ticket: | 486399ffffffffffffffffffffffffffffffffff
Panic on exit before all threads returned |
| User & Date: | vasiljevic on 2001-12-07 14:12:41 |
Changes
- icomment:
Logged In: YES user_id=95086 Andreas, I've invested couple of minutes in this issue. It is pretty simple. The main application (tclsh) thread exits before one of the worker threads gets the chance to exit. The main app thread calls PreserveExitProc which finalizes the preserved array and the exiting thread bombs since its preserved data chunk is not found. This is a Tcl core problem, not the thread extension problem. Whole scenario can be avoided by simply putting the "after 1000" at the end of the application to allow worker threads to properly clean-up and terminate. The question is: how can such scenario be avoided ? Is there something like Tcl_InExit which could be checked by *any* thread and just abort any processing if the application is about to (or in the middle of) exit? Zoran
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"