※※※※※:wx._core.PyAssertionError : C++ assertion "m_count == -1" failed in ..\..\src\msw\textctrl.cpp(122): wrong initial m_updatesCount value
如上,python程序出现c++ assertion,是怎么回事啊???
3 个解决方案
#1
wxPython是从C++移植过来的(用SWIG包装的wxWidgets库),有C++的assert是可以理解的。
检查下Python代码看看有没有错误的TextCtrl使用吧。
检查下Python代码看看有没有错误的TextCtrl使用吧。
#2
print "recv:" + curTime + "\n" + hexStr(data) + "\n"
File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_controls.py", line 2014, in write
return _controls_.TextCtrl_write(*args, **kwargs)
print "recv:" + curTime + "\n" + hexStr(data) + "\n"
难道是这句话有错么?
帮忙看看~~~多谢啊
File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_controls.py", line 2014, in write
return _controls_.TextCtrl_write(*args, **kwargs)
print "recv:" + curTime + "\n" + hexStr(data) + "\n"
难道是这句话有错么?
帮忙看看~~~多谢啊
#3
有问题请先GOOGLE,BAIDU
#1
wxPython是从C++移植过来的(用SWIG包装的wxWidgets库),有C++的assert是可以理解的。
检查下Python代码看看有没有错误的TextCtrl使用吧。
检查下Python代码看看有没有错误的TextCtrl使用吧。
#2
print "recv:" + curTime + "\n" + hexStr(data) + "\n"
File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_controls.py", line 2014, in write
return _controls_.TextCtrl_write(*args, **kwargs)
print "recv:" + curTime + "\n" + hexStr(data) + "\n"
难道是这句话有错么?
帮忙看看~~~多谢啊
File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_controls.py", line 2014, in write
return _controls_.TextCtrl_write(*args, **kwargs)
print "recv:" + curTime + "\n" + hexStr(data) + "\n"
难道是这句话有错么?
帮忙看看~~~多谢啊
#3
有问题请先GOOGLE,BAIDU