On Wed, 1 Nov 2006, Jevgeni Astanovski wrote:

Can anyone give me an advise, why _Rclose can fail?

In main(), you open FileName. The file handle is in fpr. You pass fpr to
CallIterate, which closes the file associated with fpr. Inside
CallIterate, you open FileName again, assigning it to the *local* variable
fpr (local to CallIterate).

On the second CallIterate call, CallIterate tries to close the *original*
fpr, the one local to main, which is already closed.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact [javascript protected email address].