According to [log in to unmask] message, dated 25-FEB-2000,
with subject: Re: [opening files from a dll]
> Catherine,
> We have just converted three of our Fortran programs into DLL and they are
> called by a VC++ program. All the Fortran DLLs open and create several files
> during the call and that does not caused any problem.
>
> However we need to modify the Fortran sources since it is no longer a
> stand-lone program:
[...]
> 2. Before return to the calling program, make sure all the opened units are
> closed. The original codes simply let the clean up code to do the job.
Why? Assuming that the DLL is statically linked (i.e. no use of LoadLibrary)
why does one need to do that? The only reason I can think of is that the
variables in DLL are forgotten?
Thank you for any responses. Kind regards,
Petros
----------------------
Petros Dafniotis, PhD
DuPont de Nemours Intl. S.A. - Central Research & Development
[log in to unmask]
---
DISCLAIMER: My employer, DuPont de Nemours, has nothing to do with
the opinions and ideas expressed in this post / message.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|