thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

Runtime Error while twice usage (Trac #2203) #5993

Open numpy-gitbot opened 12 years ago

numpy-gitbot commented 12 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2203 on 2012-08-17 by trac user Lukasz16a, assigned to unknown.

The following simple code causes runtime error:

include

include <numpy/arrayobject.h>

void f() { import_array() ; }

int main() { for(int i=0 ; i<2 ; i++) { Py_Initialize() ; f() ; Py_Finalize() ; } }

The problem is loading numpy.core... I tested it on Visual Studio 2010 at Windows 7 Professional x64.