in reply to Re^2: Is there a way to know why the DESTROY method was invoked?
in thread Is there a way to know why the DESTROY method was invoked?
close isn't complaining because an exception has been thrown. Why is close actually complaining? (i.e. What error are you getting?) That's the problem you actually need to fix.
By the way, if you don't check if close returned an error, you don't need to call it. The file or file object will close itself if necessary.
|
|---|