DLL Memory Problem - Solved
At 11:04 AM 4/8/2005, you wrote:
Hello,
I have created a .dll file using G77 and MinGW on my PC (Windows
2000). After using dyn.load to bring it into R2.0.1, I then call the .dll
through the function ccprox shown below. It returns the correct
values. If I run it a second time though it returns different values, so
it seems something is being placed oddly in memory.
The Fortran subroutine beings with:
integer tscore(maxexmn) /maxexmn*0/
integer tstemp(maxexmn) /maxexmn*0/
integer natscore(ncells) /ncells*0/
integer natemp(ncells) /ncells*0/
These are only reset to zero the first time when its loaded. Putting the reset manually in the Fortran code fixes it. Thanks to anyone who had been thinking about it! -Brian habing at stat.sc.edu