On TCL 8.6.9, I tried to use TCL_MEM_DEBUG to help diagnose a memory leak in my app but I get a crash when using/enabling it.
The same code is running fine when TCL is compiled without it but crash when I use the flag.
The code crash in TCL when calling function "Tcl_ResetResult->ResetObjResult->Tcl_IsShared(Tcl_DbIsShared in debug)".
It occurred while executing "Tcl_Eval()".
(It is an application with multiple thread(interpreter)).
Thanks
A little bit more info: This happens in a thread that was created in a DLL. So what we do here when the DLL is loaded from TCL, we create a new TCL interpreter(Tcl_CreateInterp) then we create a new thread where we use that interpreter. Others threads(with their own interpreter) send command to that thread that execute them. This is when this crash occur.