[f2py] Array size in fortran / DLL load error
David Gregory
david.c.gregory at gmail.com
Mon Dec 14 13:44:09 EET 2009
A rather simple suggestion, but you're not trying to allocate more
than 2 Gb of RAM on a 32 bit Windows machine are you?
On Dec 14, 2009, at 3:14 AM, Torppa Johanna <johanna.torppa at gtk.fi>
wrote:
>
> 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
> _______________________________________________
> f2py-users mailing list
> f2py-users at cens.ioc.ee
> http://cens.ioc.ee/mailman/listinfo/f2py-users
More information about the f2py-users
mailing list