1. file limit
- Posted by Lewis Townsend <Keroltarr at hotmail.com> May 28, 2004
- 479 views
Howdy folks, I have come uppon a problem that I've never noticed before. I have a program that opens 2 files. While 1 is opened it attempts to open the other one and fails. I think I am currently using the PD version of the newest Euphoria interpreter but not sure (how do I tell?). Is there a file open restriction on the PD version of Euphoria? If so, I'll just register but I didnt remember this ever being the case. Lewy T
2. Re: file limit
- Posted by CoJaBo <cojabo at suscom.net> May 28, 2004
- 450 views
Lewis Townsend wrote: > > Howdy folks, > > I have come uppon a problem that I've never noticed before. > I have a program that opens 2 files. While 1 is opened it attempts to > open the other one and fails. I think I am currently using the PD > version of the newest Euphoria interpreter but not sure (how do I > tell?). If you run ex/exw/exu with no parameters, it displays the version. > Is there a file open restriction on the PD version of Euphoria? No, but the better debug support certainly is useful! Do you have an example? > If so, I'll just register but I didnt remember this ever being the case. > > Lewy T > >
3. Re: file limit
- Posted by Lewis Townsend <keroltarr at hotmail.com> May 28, 2004
- 462 views
Howdy folks, Ok I can't duplicate the problem in a another (smaller) program. Opening 2 files at once works fine. Also on my main program I modified it so that it would not have both open at the same time and the problem still persists. I'm sure it's something really obvious and simple in my logic but I just can't see it. Basically the error I get is that a file number is -1 which means the file open statement didn't work. I just cant figure out why! The path I try to open is assembled by the program from sequences but I know the path is correct because I wrote it to another file (which opened fine) then opened that file and copied it to the command line edit comand and it opened the file fine from edit too. Any suggestions folks? If I post the whole program it's large and multiple files and requires Euallegro and some bitmaps and other files. What could cause an }}} <eucode>open( path, "r" )</eucode> {{{ statement to not work? help! LewyT
4. Re: file limit
- Posted by CoJaBo <cojabo at suscom.net> May 28, 2004
- 471 views
What is the exact value of path? Try print() and puts() (just puts() may be hard to see a space at the begining or end) Lewis Townsend wrote: > > > Howdy folks, > > Ok I can't duplicate the problem in a another (smaller) program. > Opening 2 files at once works fine. > Also on my main program I modified it so that it would not have > both open at the same time and the problem still persists. > I'm sure it's something really obvious and simple in my logic but > I just can't see it. > > Basically the error I get is that a file number is -1 > which means the file open statement didn't work. > I just cant figure out why! > The path I try to open is assembled by the program from sequences > but I know the path is correct because I wrote it to another file > (which opened fine) then opened that file and copied it to the > command line edit comand and it opened the file fine from edit too. > > Any suggestions folks? If I post the whole program it's large and > multiple files and requires Euallegro and some bitmaps and other files. > <font color="#330033">What could cause an </font><font > color="#FF00FF">open</font><font color="#330033">( path, </font><font > color="#00A033">"r" </font><font color="#330033">) statement </font><font > color="#0000FF">to </font> > not work? > > help! > LewyT >
5. Re: file limit
- Posted by Rubens Monteiro Luciano <rml at rubis.trix.net> May 28, 2004
- 465 views
Hi Lewy, It seems that other program is acessing one of the files or they are not corrected closed. Rubens At 21:31 27/5/2004, you wrote: > > >posted by: Lewis Townsend <keroltarr at hotmail.com> > >Howdy folks, > >Ok I can't duplicate the problem in a another (smaller) program. >Opening 2 files at once works fine. >Also on my main program I modified it so that it would not have >both open at the same time and the problem still persists. >I'm sure it's something really obvious and simple in my logic but >I just can't see it. > >Basically the error I get is that a file number is -1 >which means the file open statement didn't work. >I just cant figure out why! >The path I try to open is assembled by the program from sequences >but I know the path is correct because I wrote it to another file >(which opened fine) then opened that file and copied it to the >command line edit comand and it opened the file fine from edit too. > >Any suggestions folks? If I post the whole program it's large and >multiple files and requires Euallegro and some bitmaps and other files. >What could cause an }}} <eucode>open( path, "r" )</eucode> {{{ statement to >not work? > >help! >LewyT > > >
6. Re: file limit
- Posted by "Kat" <gertie at visionsix.com> May 28, 2004
- 479 views
On 28 May 2004, at 7:43, Rubens Monteiro Luciano wrote: > > > Hi Lewy, > > It seems that other program is acessing one of the files or they are not > corrected closed. Or they are crosslinked on the drive, so opening one locks both. Try running chkdsk/scandisk. Regardless, i still have problems with Eu apps locking entire drives, so other apps cannot access them at all, even when no reading/writing is going on. Kat > Rubens > > At 21:31 27/5/2004, you wrote: > > > > > >posted by: Lewis Townsend <keroltarr at hotmail.com> > > > >Howdy folks, > > > >Ok I can't duplicate the problem in a another (smaller) program. > >Opening 2 files at once works fine. > >Also on my main program I modified it so that it would not have > >both open at the same time and the problem still persists. > >I'm sure it's something really obvious and simple in my logic but > >I just can't see it. > > > >Basically the error I get is that a file number is -1 > >which means the file open statement didn't work. > >I just cant figure out why! > >The path I try to open is assembled by the program from sequences > >but I know the path is correct because I wrote it to another file > >(which opened fine) then opened that file and copied it to the > >command line edit comand and it opened the file fine from edit too. > > > >Any suggestions folks? If I post the whole program it's large and > >multiple files and requires Euallegro and some bitmaps and other files. > >What could cause an }}} <eucode>open( path, "r" )</eucode> {{{ statement to > >not work? > > > >help! > >LewyT > > > > > > >
7. Re: file limit
- Posted by Mario Steele <eumario at tuscanchat.com> May 28, 2004
- 484 views
Since no one replied directly to the original question..... Euphoria has a 19 File Handle Limit that can be open at a single instance. This should be true for both PD and Registered versions. I would check to make sure the path your passing is correct. make sure no extra data is being placed where you don't want it. L8ers Mario Lewis Townsend wrote: > > >posted by: Lewis Townsend <keroltarr at hotmail.com> > >Howdy folks, > >Ok I can't duplicate the problem in a another (smaller) program. >Opening 2 files at once works fine. >Also on my main program I modified it so that it would not have >both open at the same time and the problem still persists. >I'm sure it's something really obvious and simple in my logic but >I just can't see it. > >Basically the error I get is that a file number is -1 >which means the file open statement didn't work. >I just cant figure out why! >The path I try to open is assembled by the program from sequences >but I know the path is correct because I wrote it to another file >(which opened fine) then opened that file and copied it to the >command line edit comand and it opened the file fine from edit too. > >Any suggestions folks? If I post the whole program it's large and >multiple files and requires Euallegro and some bitmaps and other files. >What could cause an }}} <eucode>open( path, "r" )</eucode> {{{ statement to >not work? > >help! >LewyT > > -- Enchanted Blade (Mario) Brain: Come Pinky, let's return to the cage, to plan for tommorrow night. Pinky: Why Brain, what are we gonna do tommorrow night? Brain: Same thing we do every night Pinky, try to take over the world!