Overview
| Artifact ID: | 5b948c5778fa26ce278b1211d7f956bc398c115b |
|---|---|
| Ticket: | 1589794fffffffffffffffffffffffffffffffff
Memory leaks with TCL_THREADS |
| User & Date: | vasiljevic on 2007-06-30 21:02:31 |
Changes
- closedate changed to: "2007-06-30T14:02:31"
- closer changed to: "vasiljevic"
- icomment:
Logged In: YES user_id=95086 Originator: NO Allright. The change you made was helping in the case Tcl_Init and Tcl_Finalize are not done in the same thread. Normally Tcl_Init and Tcl_Finalize should be called from the same thread (the main startup thread) which is the first thread in your process. So the first thread should load and init the Tcl library and it is this one thread that needs to finalize and unload the Tcl library. You cannot delegate this to some other thread. Yep, this is not a sign of a good design and has quite a few of side-effects like: you must somehow terminate all threads using Tcl lib before your main thread that loaded/inited Tcl lib exists. But that's the way it is now; changing this would require a major library rewrite which is expensive. For the time being you should always pay attention to load and finalize Tcl library in the same (preferably startup) thread. Cheers Zoran
- login: "vasiljevic"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "vasiljevic"