File closing when DEALLOCATE HELP !!

File closing when DEALLOCATE HELP !!

I Have a program that open a file ok, now I have a loop that allocate variables at the begining of a loop read a file and deallocate those varaibles at the end of the loop, it works fine for two time, at the third time that the loop is going to the file is close, and I do not close the file looks that the deallocation is closing the file.

Any Ideas ?

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

You need to post a code sample. Otherwise a wild guess would be perhaps you are trashing a variable that contains the LUN or something of that sort.

James

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya