Page 1 of 1

Question?

Posted: Wed Aug 06, 2003 1:42 pm
by nci
How many files can be opened with the FileRequester?
I don't think it's very many because I tried opening about 530
and it wouldn't return anything. If I try to open less it will work.
Is there a limit?

What I'm doing is adding each filename to a string so it looks like this:

File1.txt|File2.txt|File3.txt ect...

Maybe I'm reaching the 64535 charactor limit. But I don't know, thats a
lot of charactors.

Thanks

Posted: Wed Aug 06, 2003 2:31 pm
by Pupil
It might be that the buffer used by this command internaly( see API GetOpenFileName) isn't bigg enough, in which case the function fails. I don't think you're hitting the 64000 bytes limit in this case, but then again i might be wrong..

Open

Posted: Thu Aug 07, 2003 4:55 am
by nci
Well, actually, I think I am hitting the limit. If all files were at least
100 characters long and there are 500 to 600 of them. Yeah.
I think that's what I'm doing.

I do beleive that they were going to fix this in future versions.
Am I wrong?

Posted: Thu Aug 07, 2003 4:29 pm
by Karbon
Yes. I think Fred said somewhere around version 4 strings would be changed to allow larger values and hopefully to be thread safe!.