Bug 269418 - SWT File Dialog fails on select many files(2000+)
Summary: SWT File Dialog fails on select many files(2000+)
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-19 13:35 EDT by philipp huebner CLA
Modified: 2019-09-06 15:32 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description philipp huebner CLA 2009-03-19 13:35:14 EDT
When trying to select many thousand files with a SWT File Dialog on win 32 
you get only a few hundred back, with the last string cut.
It seems that the Dialog has a fixed char buffer which does't resize dynamically.
Comment 1 Steve Northover CLA 2009-03-19 15:12:05 EDT
As described on the mailing list, this WORKSFORME.  I multi-select every file in c:\windows\system32 (over 2000 of them) and I get a list that is complete.  I am doing this in Eclipse 3.5M6, using the ControlExample.  Make sure you are running the same version I am running:

http://www.eclipse.org/swt/examples.php

Can you confirm that 2000+ files in system32 works but 2000+ files on your network drive fails?  There is code in FileDialog.OFNHookProc() that is attempting to grow the buffer.

Are you running XP or Vista?
Comment 2 Felipe Heidrich CLA 2009-03-19 15:46:16 EDT
I can see the problem on my machine (windows XP).
I made sure the buffer was big enough but windows only wrote up to 28047 characters to it. No idea how to fix it.
Comment 3 Steve Northover CLA 2009-03-19 15:52:11 EDT
Does it fail for system32 or did you need a network drive?
Comment 4 Steve Northover CLA 2009-03-19 16:06:33 EDT
Ok philipp, we can make it happen here on Felipe's machine.  No need for you to retest.
Comment 5 philipp huebner CLA 2009-03-20 04:19:06 EDT
yes I noticed the same behaviour. The OS.GetSaveFileName returns success althougth the string is cut to a fixed length. Both on network and local drives. 
Comment 6 Eclipse Webmaster CLA 2019-09-06 15:32:44 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.