A 40,000 line legacy Fortran application is built as a DLL to be called from Visual Basic.
I suspect a particular runtime error is caused the by code's failure to properly initialize some local variable inside the DLL. The first time the DLL is executed, everything is fine. But if the DLL is hit a second time during one execution of the VB appplication, problems occur.
Is there a VB-callable function to release the Fortran DLL? Any suggestions are greatly appreciated.
I am speculating that such a function would resolve my problem, since the variables would be reinitialized on re-load.