[Python-Dev] PyRun_ with file name (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Mon Aug 9 09:08:50 CEST 2004


Tim Peters wrote:

If you understand the problem, and believe it will fix it, +1 (I don't think I fully understand the problem, but it gets points from me for being a small change).

To fully understand it, you need to spend three days in a locked room together with the VC debugger :-) The submitter claims that VC7 has changed the CRT ABI, I believe this is incorrect. Instead, the problem results from having to CRT copies simultaneously, even though they all have the very same code sice ages. Here is the full story:

The end result is that the _lock_file operation crashes. As MSDN explains, you must not pass FILE* across CRTs. The proposed patch avoids the problem by passing file names instead.

Regards, Martin



More information about the Python-Dev mailing list