Artifacts Associated With Ticket 641261ffffffffff
Ticket change [d2afd1d4af] (rid 113570) by jkbonfield on 2002-11-20 15:09:16:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
While I disagree with having hard coded limits, I see that this is one imposed by the broken design of the Windows API. By its very nature a (potentially inappropriate) limit has to be used. However 20*MAX_PATH is too low for a limit, and our users have started reporting this as a bug. It is not aided by the silent failure whereby no messages are produced, they simply see a truncated list. It is our group that originally added the multiple file access to the filebrowser, on both unix and windows. The person who made this change (not myself) decided to offload the decision of what this hard-coded limit should be to the Tcl developer by having the -multiple argument take a size limit rather than boolean parameter. Would it be possible to put such a system back? Whatever limit you code you'll be on to a loser - no one value is right for everyone - so the logical approach is to make it configurable at the script level.
- foundin initialized to: "obsolete: 8.4.0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jkbonfield"
- subsystem initialized to: "36. Pathname Management"
- title initialized to: "Too short a value of TK_MULTI_MAX_PATH"
- type initialized to: "Bug"
Ticket change [f9452d111a] (rid 91679) by vincentdarley on 2002-11-20 22:21:48:
- icomment:
Logged In: YES user_id=32170 This looks to be a Tk bug, not Tcl. Best to assign it to whoever maintains that code. Is there no other Win32 API which isn't so brain-dead?
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [07e54b864a] (rid 89484) by hobbs on 2002-11-23 09:03:20:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 This is a Tk problem, but in any case the assumptions above are not correct. We hardcode that value, but it is out of laziness. If we choose a value that is too small, the dialog will return the code FNERR_BUFFERTOOSMALL, allowing you to create a larger buffer dynamically. That way we could also start with a smaller stack buffer size. If you would like to make a patch that corrects this, we would be glad to add it.
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "6"
- username: "hobbs"
Ticket change [a2bc1de377] (rid 109944) by jkbonfield on 2002-11-26 22:40:02:
- icomment:
Logged In: YES user_id=154581 I am not convinced that FNERR_BUFFERTOOSMALL really helps as it's too late by then. What do we want the user to see? Increasing the buffer size and then retrying implies (I am assuming) that the users gets a new filebrowser invoked and they have to reselect again. This may happen multiple times as we do not know the desired size from the original attempt, just that our first guess was too small. I cannot see an obvious solution unless there is indeed an alternative API that doesn't have this design flaw. Anyway, I'm not a windows developer myself, but I'll discuss this with others here and try and get a patch submitted for as much as seems possible.
- login: "jkbonfield"
- mimetype: "text/plain"
- username: "jkbonfield"
- icomment:
Ticket change [0f89704572] (rid 94807) by hobbs on 2002-12-01 04:02:55:
- icomment:
Logged In: YES user_id=72656 OK, I can see that that would possibly be a problem. My suggestion would be to make a modified version of your recommended patch - one that specifies the number of expected files. If it is 0, we use just 1*MAX_PATH, and for any number less than 20, we leave it at 20*MAX_PATH (for backwards compatability with existing functionality), and for anything larger it is n*MAX_PATH. This only makes a difference on Windows of course, but it would at least be compatible. There is no reason that we must create that buffer on the stack - it can just as well be malloc'ed when we know the requested size.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [5b80c9f1c4] (rid 118338) by hobbs on 2003-07-19 02:49:12:
- icomment:
Logged In: YES user_id=72656 I have doubled the size, but the patch for increasing the size with a large -multiple value would be better. Default is not *40 (~10K) in 8.4.4 and 8.5a.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [a3312a7c76] (rid 110010) by hobbs on 2010-08-05 03:38:34:
- icomment:
Addressed with patch 2898255 in 8.5.8 and head
- login: "hobbs"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "hobbs"
- icomment:
Ticket change [fabbbd88d1] (rid 91931) by hobbs on 2010-08-05 03:38:35:
- closedate changed to: "2010-08-04T20:38:35"
- closer changed to: "hobbs"
- icomment:
allow_comments - 1
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "hobbs"