Mailing List Archive

Embedding python in win32 (newbie question)
You need to compile your app with "/MD". This is to ensure that Python and
your app agree on the C runtime library, and thus understand each others
FILE and memory objects etc.

Mark.

Ben wrote in message <7jh81b$ftc@wapping.ecs.soton.ac.uk>...
>it evaluates fine. Unfortunately, when I pass a file pointer e.g.
>
>FILE *fp;
>fp=fopen("test.py","r");
>if(!fp) exit(0);
>Py_Initialize();
>PyRun_SimpleFile(fp,"test.py");
>
>it crashes the computer with a nasty access error.
>