Overview
| Artifact ID: | 5ff27a085ed5c9926cc1addb0f037c680818b9fe |
|---|---|
| Ticket: | 467505ffffffffffffffffffffffffffffffffff
embedded interp crashes on win 2000 |
| User & Date: | davygrvy on 2001-11-07 13:46:14 |
Changes
- icomment:
Logged In: YES user_id=7549 The bug is in Win2K and Tcl. Tcl_MakeFileChannel() was repaired in 8.4 more than a year ago. The STARTUPINFO handed to the GUI application that embedds Tcl, has invalid data in the 3 standard handles: .hStdInput .hStdOutput .hStdError They were previously accepted without question and only tested if == NULL || == INVALID_HANDLE_VALUE. But Win2K is putting garbage there. See Tcl_MakeFileChannel() in tclWinChan.c (HEAD code in CVS) for the big effort I did with __try/__except. A possibly better check might be to use HasConsole() first, to see if the data in the STARTUPINFO should be worth checking. The belt and suspender exception handling in Tcl_MakeFileChannel() could be left in place, though. The error you should be getting is: can not find channel named "stdout" [puts ""] will never work in your case anyways, as there is no destination in a GUI application unless it calls AllocConsole() to create one. I'll have a look at your code...
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"