code-google-com / pyscripter

Automatically exported from code.google.com/p/pyscripter
1 stars 1 forks source link

Visual C++ Runtime Error using PyQt4 #364

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using PyScripter 1.9.9.7, Python 3.1.2, PyQt 4.7.3
on both Windows XP and Windows 7.

If you run "simple.py" below, the first run works.  Exit the small window
that appears.  The python interpreter reports exit code 0.  Then run the
program again.

Visual C++ Runtime Error every time.  "This application has requested the
Runtime to terminate in an unusual way."

If running Internal it kills the PyScripter program.  Running External
kills python but PyScripter recovers.

I've run this same program though other IDEs (WingIDE, PyDev and Komodo at
least) without any trouble at all.

# simple.py

import sys
from PyQt4 import QtGui

app = QtGui.QApplication(sys.argv)

widget = QtGui.QWidget()
widget.resize(250, 150)
widget.setWindowTitle('simple')
widget.show()

sys.exit(app.exec_())

Original issue reported on code.google.com by mochn...@gmail.com on 29 Apr 2010 at 1:43

GoogleCodeExporter commented 9 years ago
This issue *is* present in IDLE and PythonWin (but not Komodo and PyDev), if it 
helps.

Original comment by ooomal...@gmail.com on 28 May 2010 at 5:57

GoogleCodeExporter commented 9 years ago
Is it possible that PyScripter can't use certain environment variables, or 
certain settings for environment variables?  I found that if I deleted 
PYTHONPATH from the list of environment variables, this error went away.

Original comment by go4...@gmail.com on 14 Jul 2010 at 2:42

GoogleCodeExporter commented 9 years ago
Use the remote engine and reinitialize before each run.
This is done by default in PyScripter v2.0.  In earlier versions you need to 
create a Run Configuration in Project Explorer and run it that way to achieve 
the same effect.

Original comment by pyscripter on 31 Jul 2010 at 1:48