Can you please try this patch please. It looks like each time the file was rewound it would reopen the file creating an extra file handle.<div><br></div><div><div>diff --git a/IO/vtkTecplotReader.cxx b/IO/vtkTecplotReader.cxx</div>
<div>index 7713098..4f64d2c 100644</div><div>--- a/IO/vtkTecplotReader.cxx</div><div>+++ b/IO/vtkTecplotReader.cxx</div><div>@@ -62,7 +62,10 @@ class FileStreamReader</div><div> {</div><div> public:</div><div> FileStreamReader();</div>
<div>- ~FileStreamReader(){};</div><div>+ ~FileStreamReader()</div><div>+ {</div><div>+ this->close();</div><div>+ }</div><div> </div><div> bool open(const char* fileName);</div><div> bool is_open()const{return Open;};</div>
<div>@@ -144,7 +147,6 @@ void FileStreamReader::rewind()</div><div> {</div><div> if ( this->Open )</div><div> {</div><div>- this->Open = false;</div><div> this->Eof = false;</div><div> this->Pos = this->BUFF_SIZE;</div>
<div> this->BuffEnd = this->BUFF_SIZE;</div><div><br></div><br><div class="gmail_quote">On Mon, Feb 6, 2012 at 1:22 PM, Ahmad <span dir="ltr"><<a href="mailto:falahatpisheh@gmail.com">falahatpisheh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi Dave,<br>
<br>
Unfortunately, it did not help. I set a breakpoint on<br>
*this->Internal->ASCIIStream.close()* and it is called every time in the<br>
loop. This means that close function is executed. However, it does not<br>
release the file handle. I am not sure if gzclose(this->file) releases the<br>
file handle.<br>
<br>
I also increased the maximum number of file handles and it now reads more<br>
files. But this is only a temporary solution to this problem.<br>
<br>
Please let me know of your thoughts.<br>
<br>
Ahmad<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Problem-in-reading-more-than-1000-files-by-vtk-readers-tp5459233p5460860.html" target="_blank">http://vtk.1045678.n5.nabble.com/Problem-in-reading-more-than-1000-files-by-vtk-readers-tp5459233p5460860.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Robert Maynard<br>
</div>