I developp a DLL.
I define the following module
real*8, allocatable :: PDL(:),PX(:),PY(:),PA(:),PGH(:)
real*8, allocatable :: PYCG(:),IPS(:),PU(:),PGHSS(:),PYCGSS(:)
end module tableaux
Then I include "use tableaux" in each file from which I need these arrays.
When running the application calling the DLL, I get an error message 151 (array already allocated). If I try to deallocate instead, I get error message 153 (array not allocated).
If I delete the "use tableaux" lines, and define instead the arrays directly in each file, it works.
But I want to use the tableaux module, in order to share the arrays between all my Fortran files.
The only differences I can see between the example I had and that works and my code are the following :
- the example was an EXE, not a DLL
- it was compiled with Fortran PowerStation, not with Compaq Visual Fortran.
But in the docs I have, I find no mention about incompatibilities with DLLs etc.
What's the problem with the "use tableaux" line ? Or is it with the tableaux module ?
Please help me !