Problems with PyRun_SimpleFile()
Gordon McMillan
gmcm at hypernet.com
Mon Jul 19 12:42:13 EDT 1999
Markus Ewald writes:
> Excuse this dumb question,
Not dumb, just very frequent.
> but how can I use PyRun_SimpleFile() ?
> I'm using VC6 on Win98, where I've declared some simple functions
> for testing.
>
> Well -- everything works fine when I use PyRun_SimpleString().
>
> If I put the same lines I gave PyRun_SimpleString() in a File and
> then use PyRun_SimpleFile() to execute it, I get an access
> violation.
Make sure you have linked your stuff against the exact same run time
as python15.dll. In other words, choose "Multithreaded DLL". NOT
"Debug Mulitthreaded DLL" or any other choice.
- Gordon
More information about the Python-list
mailing list