Artifacts Associated With Ticket 699739ffffffffffffffffffffffffffffffffff
Ticket change [1b53afc25f] (rid 123127) by kennykb on 2003-03-08 00:42:15:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
If an application configures a very large buffer on stdout, and then writes a large amount of data to the console on Windows, the write fails with error writing "stdout": not enough memory A script that illustrates the problem is: fconfigure stdout -buffering full -buffersize 262144 for { set i 0 } { $i <= 10000 } { incr i } { puts ---------------------------------------------------------------------- } It's reasonable for the write to block, but this failure is bizarre. - foundin initialized to: "obsolete: 8.4.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "kennykb"
- subsystem initialized to: "27. Channel Types"
- title initialized to: "app can overrun console buffer on Windows"
- type initialized to: "RFE"
Ticket change [3a7ae4db03] (rid 112568) by davygrvy on 2003-04-23 03:30:39:
- assignee changed to: "davygrvy"
Ticket change [9d856db9b3] (rid 96321) by davygrvy on 2004-06-01 16:50:52:
- icomment:
Logged In: YES user_id=7549 Just put tcl in the debugger to look at this. WriteFile itself is failing in ConsoleOutputProc(). I think the summary of this problem is that the other end can't accept a buffer this big and rather than soaking up some of it, it just barfs. I don't know if there is an easy way to fix this. Even if we knew the limit ahead of time (maybe GetConsoleBufferInfo could get us the answer?) we have no way for the driver to intercept a setting of the buffersize from the driver side.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [aaae816afd] (rid 100968) by davygrvy on 2004-06-03 02:24:20:
- icomment:
Logged In: YES user_id=7549 It seems the upper limit -buffersize is 0x7FFF. One over that and WriteFile fails with ENOMEM. I can't think of a way to fix this aside from adding a way for drivers to intercept requests to change the buffersize.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [b4edf9a76b] (rid 125138) by davygrvy on 2005-11-04 04:56:04:
- assignee changed to: "patthoyts"
Ticket change [7ff320becb] (rid 97651) by kennykb on 2007-02-27 02:49:18:
- assignee changed to: "davygrvy"
Ticket change [5a2ff48c70] (rid 118099) by davygrvy on 2007-11-16 00:16:51:
- closedate changed to: "2007-11-15T17:16:51"
- closer changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 Originator: NO I don't believe a fix for this is possible given there are no hooks available to a channel driver to restrict the generic side's standard fconfigure settings. I've come across this before. Also in the Console channel driver changing -encoding to something other than unicode when running on NT causes big problems. Could this become a new TIP? a new hook such that generic layer setting requests are forwarded to the driver for validation before accepted?
- login: "davygrvy"
- mimetype: "text/plain"
- resolution changed to: "Postponed"
- status changed to: "Closed"
- username: "davygrvy"
Ticket change [d14b53d293] (rid 113322) by dkf on 2007-11-16 05:32:26:
- foundin changed to: "None"
- icomment:
data_type - 360894
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "27. Channel Types"
- username: "dkf"
Ticket change [a8874189bb] (rid 99013) by dkf on 2007-11-16 05:32:50:
- resolution changed to: "None"
- status changed to: "Open"
Ticket change [57c45fb4fe] (rid 261560) by serhiy.storchaka on 2026-11-13 11:18:46:
- login: "serhiy.storchaka"
- type changed to: "Bug"