1. RE: only can open 25 files ?

> -----Original Message-----
> From: jimmy17 at indosat.net.id [mailto:jimmy17 at indosat.net.id]
> Sent: Wednesday, 23 May 2001 3:00 PM
> To: EUforum
> Subject: only can open 25 files ?
>
> from the description of euphoria tutorial, getc.ex,
> euphoria can only open 25 files at the same time. is it true ?
> if i would like to open more than 25, how ?


I suspect that the limitation is based on the MS-DOS FILES configuration
parameter more than any limits inside Euphoria.

Out of curiosity, why do you want to have some many simultaneously opened
files?

-----------
cheers,
Derek Parnell

new topic     » topic index » view message » categorize

2. RE: only can open 25 files ?

>
>I suspect that the limitation is based on the MS-DOS FILES configuration
>parameter more than any limits inside Euphoria.
>
>Out of curiosity, why do you want to have some many simultaneously opened
>files?
>
>-----------
>cheers,
>Derek Parnell

well, consider if an inventory application need to open those files, i could
have anigthmare than. ( btw sometimes my senior would like me to port
foxpro application into other system for some reason, and as far as i know,
in foxpro we can open many files together. )

thanks anyway.

new topic     » goto parent     » topic index » view message » categorize

3. RE: only can open 25 files ?

AFAIK, every operating system has some sort of limitation to the number of 
files which may be opened.  The limitation may be absolute, or may be 
relative to the amount of RAM available, or some other parameter, but there 
is a limit.
You wrote:
> well, consider if an inventory application need to open those files, i
> could have anigthmare than. ( btw sometimes my senior would like

If this is the case, you'd be better off FIRST getting all of your data 
onto some kind of database, and SECOND porting the code to 
access/manipulate it.  Both steps may be a necessary part of your 
conversion.  This may be an unpleasant surprise if you though you'd only 
have to do the second part, but well, that's the world of data conversion!

If you don't want to do that, ie if you only want to do the second part, 
then maybe try running your program on Linux.  I think you'll find coding 
99.9% the same, but with fewer arbitrary limitations as DOS.
--On Wednesday, May 23, 2001 6:22 PM +0700 jimmy17 at indosat.net.id wrote:

>
>
>
>>
>> I suspect that the limitation is based on the MS-DOS FILES configuration
>> parameter more than any limits inside Euphoria.
>>
>> Out of curiosity, why do you want to have some many simultaneously opened
>> files?
>>
>> -----------
>> cheers,
>> Derek Parnell
>
> well, consider if an inventory application need to open those files, i
> could have anigthmare than. ( btw sometimes my senior would like me to
> port foxpro application into other system for some reason, and as far as
> i know, in foxpro we can open many files together. )
>
> thanks anyway.
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

4. RE: only can open 25 files ?


new topic     » goto parent     » topic index » view message » categorize

5. RE: only can open 25 files ?

Derek Parnell wrote:
> > -----Original Message-----
> > From: jimmy17 at indosat.net.id [mailto:jimmy17 at indosat.net.id]
> > Sent: Wednesday, 23 May 2001 3:00 PM
> > To: EUforum
> > Subject: only can open 25 files ?
> >
> > from the description of euphoria tutorial, getc.ex,
> > euphoria can only open 25 files at the same time. is it true ?
> > if i would like to open more than 25, how ?
> 
> 
> I suspect that the limitation is based on the MS-DOS FILES configuration
> parameter more than any limits inside Euphoria.
> 

actually, it's just a euphoria limit. i have FILES=30 in config.sys on 
my other DOS puter with no ill effects

new topic     » goto parent     » topic index » view message » categorize

6. RE: only can open 25 files ?

>Foxpro requires lots of file handles just to do its work - the manual 
>recommends 50 as a minimum, even if you only have a simple database.
>
>If you really have more than 25 data files, then consider why they all 
>have to be open at the same time. Open one, read the data you need, 
>then close it, freeing up a handle for another use.
>
>I don't intend to offend, but >25 files for an inventory app? 

well, just pretend it has to.. :) 
thanks anyway.

new topic     » goto parent     » topic index » view message » categorize

7. RE: only can open 25 files ?

> -----Original Message-----
> From: jimmy17 at indosat.net.id [mailto:jimmy17 at indosat.net.id]
> Sent: Wednesday, 23 May 2001 3:00 PM
> To: EUforum
> Subject: only can open 25 files ?

> if i would like to open more than 25, how ?

With great difficulty. It is possible, by managing a pool of file handles,
but the added complexity and risk of having many simultaneous open DOS files
is not worth the effort, in my opinion. You just open yourself to problems
and maintenance issues. Instead, I'd seriously rethink the design of the
application and consider using a database - such as EDS, the Euphoria
Database System supplied by RDS.

-----------
cheers,
Derek Parnell
Senior Design Engineer
Global Technology Australasia Ltd
dparnell at glotec.com.au

---------------------

new topic     » goto parent     » topic index » view message » categorize

8. RE: only can open 25 files ?

no. it says specifically in relnotes.doc that the file limit for 
euphoria is 25 files. if you want to open more, i suppose you use int 
21h(in DOS) or the standard C functions(Win32/Linux) if you want to open 
more than 25 files

Mike Hurley wrote:
> could it have something to do with files=x in CONFIG.SYS?
> 
> --Mike
> ----- Original Message -----
> From: <jimmy17 at indosat.net.id>
> To: "EUforum" <EUforum at topica.com>
> Sent: Wednesday, May 23, 2001 6:22 AM
> Subject: RE: only can open 25 files ?
> 
> 
> >
> >
> >
> > >
> > >I suspect that the limitation is based on the MS-DOS FILES configuration
> > >parameter more than any limits inside Euphoria.
> > >
> > >Out of curiosity, why do you want to have some many simultaneously 
> > >opened
> > >files?
> > >
> > >-----------
> > >cheers,
> > >Derek Parnell
> >
> > well, consider if an inventory application need to open those files, i
> could
> > have anigthmare than. ( btw sometimes my senior would like me to port
> > foxpro application into other system for some reason, and as far as i
> know,
> > in foxpro we can open many files together. )
> >
> > thanks anyway.
> >
> >
> >
> >
> >
> >
>

new topic     » goto parent     » topic index » view message » categorize

9. RE: only can open 25 files ?

what's that supposed to mean?

Gerardo wrote:
> Or switch to Linux, you mean?

new topic     » goto parent     » topic index » view message » categorize

10. RE: only can open 25 files ?

Robert Craig wrote:
> Michael J. Sabal writes:
> > Does open_dll count against the file limit as open does, 
> 
> No.
> 
> > or are they separate file tables?
> 
> They're separate. 
> I don't know if Windows imposes any limit (worth worrying about)
> on the number of .dll's that you can open.
> 
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    http://www.RapidEuphoria.com
> 
> 

  It seems to me windows should be able to automatically close or
  swapout any dll that is not active to make more room; as long as
  the DLL's definition does not restrict it.  

Bernie

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu