muheeb
22nd April 2004, 19:25
Hi all,

I face a problem with the function "seq.open"...

I open/close for reading a file many times in my code,

but in big ranges in some point "seq.open" fails to open

for reading and returns error -11 (Internal table is full) !!

Does anyone know about this error? and how can I bypass it?

Thanks all.

I have BaanIV running on UNIX.

JaapJD
23rd April 2004, 11:50
Are you sure that you close the file? There is a limitation on the number of file pointers that can be created.

muheeb
23rd April 2004, 12:05
Thanks you for reply,

Yes I'm sure and positive 100%.
By the way, the program works on one machine
but in the same range in other machine failed
in some point to open the file (error -11).
The logic is in iteration open a file do things
and then close it, to continue for the next iteration:
------------------------------------------------------------------------------
i = 0
rep.file = seq.open(file_name1, "r")
while i<NUM
i = i + 1
in.file = seq.open(file_name1, "r")
out.file = seq.open(file_name2. "w")
...
..
seq.close(in.file)
seq.close(out.file)
endwhile
seq.close(rep.file)
------------------------------------------------------------------------------
In some machine when NUM is big, in some point (i>40) in.file returns -11 (Internal table is full), but out.file opens ok...

Why this happens?
is there any limitation in baan internal table?
how can it be freed if it possible?

Thanks.