[issue10082] PyRun_SimpleFile crashes application

2010-10-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, unless you are using the very same compiler that Python was compiled with, this will indeed crash. Closing this as "won't fix", then - use PyRun_SimpleString instead. -- resolution: -> wont fix status: open -> closed ___

[issue10082] PyRun_SimpleFile crashes application

2010-10-13 Thread Valery Lesin
Valery Lesin added the comment: OS: windows xp Compiler: MSVC versions 7.1, 8.0 and 9.0 Actually, the difference in compiler for python library and client applications causes the problem (I suppose that even same compiler with different options could give binary incompatible FILE structures)

[issue10082] PyRun_SimpleFile crashes application

2010-10-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: What operating system are you using? What compiler? -- nosy: +loewis ___ Python tracker ___ ___ Py

[issue10082] PyRun_SimpleFile crashes application

2010-10-13 Thread Valery Lesin
New submission from Valery Lesin : All the functions in Python/C API for file execution (like PyRun_SimpleFile) crash the application. Some thoughts about problem: these functions use FILE* as first parameter which is binary incompatible with different CRT (python.dll and application could use