Index: macosx/tkMacOSXEmbed.c ================================================================== --- macosx/tkMacOSXEmbed.c +++ macosx/tkMacOSXEmbed.c @@ -798,13 +798,16 @@ TkWindow *winPtr = clientData; Container *containerPtr; Tk_ErrorHandler errHandler; if (!firstContainerPtr) { - TkMacOSXDbgMsg("Embedded window has nil container."); + /* + * When the interpreter is being dismantled this can be nil. + */ return; } + /* * Ignore any X protocol errors that happen in this procedure (almost any * operation could fail, for example, if the embedded application has * deleted its window). */ Index: macosx/tkMacOSXInit.c ================================================================== --- macosx/tkMacOSXInit.c +++ macosx/tkMacOSXInit.c @@ -285,11 +285,13 @@ */ if (Tcl_MacOSXOpenVersionedBundleResources(interp, "com.tcltk.tklibrary", TK_FRAMEWORK_VERSION, 0, PATH_MAX, tkLibPath) != TCL_OK) { + # if 0 /* This is not really an error. Wish still runs fine. */ TkMacOSXDbgMsg("Tcl_MacOSXOpenVersionedBundleResources failed"); + # endif } #endif /* * FIXME: Close stdin & stdout for remote debugging otherwise we will