Question?

Just starting out? Need help? Post your questions and find answers here.
nci
User
User
Posts: 28
Joined: Mon Jul 28, 2003 6:03 pm

Question?

Post 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
Neptune Century Inc.
Eric Butler, CEO, Lead programmer

"The road to happiness never ends..."
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post 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..
nci
User
User
Posts: 28
Joined: Mon Jul 28, 2003 6:03 pm

Open

Post 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?
Neptune Century Inc.
Eric Butler, CEO, Lead programmer

"The road to happiness never ends..."
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post 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!.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Post Reply