Community
Participate
Working Groups
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.
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?
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.
Does it fail for system32 or did you need a network drive?
Ok philipp, we can make it happen here on Felipe's machine. No need for you to retest.
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.
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.