|
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.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.