Overview
| Artifact ID: | a4779a2ebde3907c1ba157a68d7bb76bc7cc07660e2195ae251a9ae50c8976cd |
|---|---|
| Ticket: | 2172279fffffffffffffffffffffffffffffffff
Crash when calling Tcl_FinalizeThread() |
| User & Date: | serhiy.storchaka on 2026-10-12 18:33:54 |
Changes
- icomment:
<code>Tcl_FinalizeThread()</code> frees all per-thread Tcl data, including the event queue, so it cannot be called while Tcl is still running in that thread, for example from an event handler: <code>Tcl_ServiceEvent()</code> uses the event queue after the handler returns. Leave the event loop first (e.g. set a flag in the handler and check it in the loop) and call <code>Tcl_FinalizeThread()</code> after that.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- status changed to: "Closed"