Skip to content
Tcl Source Code History Of Ticket 641261ffffffffff
Login

History Of Ticket 641261ffffffffff

Artifacts Associated With Ticket 641261ffffffffff

  1. Ticket change [d2afd1d4af] (rid 113570) by jkbonfield on 2002-11-20 15:09:16:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "obsolete: 8.4.0"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "jkbonfield"
    9. subsystem initialized to: "36. Pathname Management"
    10. title initialized to: "Too short a value of TK_MULTI_MAX_PATH"
    11. type initialized to: "Bug"
  2. Ticket change [f9452d111a] (rid 91679) by vincentdarley on 2002-11-20 22:21:48:

    1. 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?
      
      
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  3. Ticket change [07e54b864a] (rid 89484) by hobbs on 2002-11-23 09:03:20:

    1. assignee changed to: "hobbs"
    2. 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.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. priority changed to: "6"
    6. username: "hobbs"
  4. Ticket change [a2bc1de377] (rid 109944) by jkbonfield on 2002-11-26 22:40:02:

    1. 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.
      
      
    2. login: "jkbonfield"
    3. mimetype: "text/plain"
    4. username: "jkbonfield"
  5. Ticket change [0f89704572] (rid 94807) by hobbs on 2002-12-01 04:02:55:

    1. 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.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  6. Ticket change [5b80c9f1c4] (rid 118338) by hobbs on 2003-07-19 02:49:12:

    1. 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.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  7. Ticket change [a3312a7c76] (rid 110010) by hobbs on 2010-08-05 03:38:34:

    1. icomment:
      Addressed with patch 2898255 in 8.5.8 and head
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. status changed to: "Closed"
    5. username: "hobbs"
  8. Ticket change [fabbbd88d1] (rid 91931) by hobbs on 2010-08-05 03:38:35:

    1. closedate changed to: "2010-08-04T20:38:35"
    2. closer changed to: "hobbs"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. username: "hobbs"