I think version 1.8 fixes this bug. It works Thank you
The problem is only when you destroy the root window "." !!! Correct ? Yes ! The strange thing is that on my PC there's no crash, but the application takes 3..6 seconds to close. Same , but I think there’s still a bug, because if you add a puts after the delete command, you’ll never see it show up.
Can you inspect the timestamp of your "wish90.exe" ? My version is from December 2025 after 2000 { puts "deleting label" ; destroy .l ; puts "done" } It’s the same for me – I’ve got no problem with that command, it’s only when I close the window. Or, can you run your script with an older version of TclTk (< 9.0.3) ? The problem still persists (9.0.1) It doesn't matter – in a way, that's just as well. Thanks Regards
I have successfully compiled in debug mode (on Windows, v1.7). And look below when the window closes : tcl9tk90.dll (crash) tkb2d90.dll!getImgSurfaceMaster tkb2d90.dll!MasterSurfaceDeleteImage (tkImgBlend2d.c:272) tkb2d90.dll!BLX_Surface::~BLX_Surface() (t2d_Surface.cxx:164) tkb2d90.dll!DeleteB2dMetadata (t2d_Surface.cxx:737) tkb2d90.dll!ImgSurfaceDelete (tkImgBlend2d.c:310) It would appear that nothing offers protection against this re-entry : static ImgSurfaceMaster* getImgSurfaceMaster(Tcl_Interp*...
Are you running on Mac ? Silicon Mac ? Yes , but I also have this issue on Windows Which TclTk version are you using ? 9.0.3 If it's very easy to compile your version, I could try to create a DLL in debug mode. And see if there's any additional information. Do you know of a place where I could read about how to compile tclBlend2D?
On macOS with Tk 9.0.3 or later, the image does not display.
image delete