[Gambas-user] Too many files open

Benoit Minisini gambas at ...1...
Wed Apr 13 16:24:53 CEST 2005


On Wednesday 13 April 2005 09:26, ulisse at ...933... wrote:
> Hallo,
> I'm experiencing the following issue:
>
> "System error. Too many files open".
>
> My application rises an "Open" statement on a text file in a
> SUB called "CaricaProdotti()".
>
> "CaricaProdotti()" is rised by a timer event (every 90
> seconds) and when user click on ListView item.
>
> The point is that I close the file at the end of the sub.
> Error anyway remain.
>
> I tried to put a Public variable in the Class that tells if
> the sub "CaricaProdotti()" is running and avoid opening the
> file if not running.
>
> I tried flushing....
>
> It seems that anyway opening many times the same file rise
> the error.
>
> Anyway what is the exact meaning of "Too many files open" ?
>
> Thanks
>
>

'Too many files open' means that you opened too many files :-)

Just print something when you open a file, and something other when you close 
it to see what happens. Or send your project...

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list