[f2py] Array size in fortran / DLL load error
johanna.torppa at gtk.fi
Mon Dec 14 10:14:54 EET 2009
I think I have asked this before, but the problem still exists, so I'll try again.
When I export the .pyd file created with f2py to Python, I get the error message: "ImportError: DLL load failed: invalid access to memory location" when trying to run the Python code. The error is traced to the line of the Python code where the "export" command is.
The reason seems to be too much array elemets defined in the fortran codes since, when I decrease the number of array elements, the programs work fine.
But I need to have large arrays, so there must be some other way to solve this problem. Anyone having large arrays, could you tell how large do you have and how much elements in all, approximately.
I've got approximately 2,000,000 elements in all, and the largest array has 640,000 elements (800,800).
Bw, Johanna Torppa
More information about the f2py-users