Crash on msvcrt mismatch?
jlagarde at dcscorp.com
Fri Apr 10 19:08:13 CEST 2009
I don't have much experience writing extension modules, and am looking for pointers to resolve python crashes on Windows.
I've isolated the problem to a python file with the following two lines:
That causes Python to crash. If I comment out either one of the two lines, it doesn't. C13 is an extension module wrapping the API for an instrumentation card. I've written test code that uses that C13 module without problems, but that code doesn't use PyQt.
My Python and PyQt come from the Python(x,y) binary distribution (version 2.1.11). C13 was compiled using mingw and used msvcr71 by default. I noticed that although Python depends on msvcr71 as well, the PyQt modules depend on msvcrt (QtCore4.dll and Qtw.pyd for example). I tried to use msvcrt for C13 as well, but got the same result.
I'm looking for ideas as to what to try next. I'd like to avoid having to build PyQt from source, but if that's the recommendation I'll give it a go.
More information about the Python-list