Message46526
Problem:
PyRun_SimpleFile - Using this function on Windows with
MSVC7 (VS .NET) causes a crash.
Reason:
1)Pre built binaries link to msvcrt.dll. New version of
MSVC link to msvcrt71.dll. The FILE structure is
different across the two versions of runtime library.
2) If python23.dll is rebuilt using the latest binary,
and issue exist where passing in FILE * still causes
the runtime library to throw an exception due to
running in the dll's context.
Solution:
Remove both of these problems by adding a new function
that only takes the filename (future maybe fopen flags)
and have the dll open the file itself and pass it on.
New function added to pythonrun.c and pythonrun.h
int
PyRun_SimpleFileWithOpen(const char *filename)
Takes just the file name, opens the file and then pass
it on.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:39:03 | admin | link | issue1003535 messages |
2007-08-23 15:39:03 | admin | create | |
|