Re: [f2py] Array size in fortran / DLL load error

David Gregory <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <-7133501693557724283@unknownmsgid>
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 <[email protected]>
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-Y4l6ocDipWCuvFJfX82//[email protected]
> http://cens.ioc.ee/mailman/listinfo/f2py-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.