[Patches] [ python-Patches-1003535 ] Simple File fix for Windows
Runtime incompatability
SourceForge.net
noreply at sourceforge.net
Wed Aug 4 22:17:51 CEST 2004
Patches item #1003535, was opened at 2004-08-04 16:17
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1003535&group_id=5470
Category: Core (C code)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Schwartz (mdjeremy)
Assigned to: Nobody/Anonymous (nobody)
Summary: Simple File fix for Windows Runtime incompatability
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1003535&group_id=5470
More information about the Patches
mailing list