Passing strings from Python -> C++ = CRASH
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
Hi Guys,
First of all, here's my development configuration:
Compiler: MS Visual C++ 2008 Express
Python: ver. 2.6.5 (compiled from src)
Qt: ver. 4.6.3 (compiled from src)
PythonQt: ver. 2.0.1 (compiled from src)
I'm running this tiny peace of code:
And this being the Script with the very long path:
The software crashes on exit, most probably due to a destructor call that fails for some reason. I Already read about people having the same problem on former versions. Unfortunately I wasn't able to find their solutions. The link was dead.
Curiously the same thing happens as well if I reduce the Script to only returning an arbitrary string. Of course I will have to change
to
. But still this very simple example keeps crashing.
Is there any known reason for this?