简体   繁体   English

框架关闭时python.exe崩溃

[英]python.exe is getting crashed at time of frame close

I am making an application using wxpython in which i have imported some modules and added the some widgets but when i am closing the application window ie Frame(wxFrame) python.exe getting crashed and showing the following message "python.exe get encountered a problem and need to be close... Tell microsoft donttell smt smt". 我正在使用wxpython制作应用程序,其中我已经导入了一些模块并添加了一些小部件,但是当我关闭应用程序窗口时,即Frame(wxFrame)python.exe崩溃并显示以下消息“ python.exe遇到问题”并且需要关闭...告诉Microsoft donttell smt smt”。

My app is working fine but this msg is coming while closing the app there is no message coming why its occur. 我的应用程序运行正常,但是关闭该应用程序时此消息即将到来,没有消息提示其发生原因。 Should i do something like deleting the wxwindows or bitmap of wxpython (i think some handle or some obj of wxpython/python like dict or list are in memory so manually i shd delete that, its my perception only may be wrong or right) if i am right then what thing of wxpython shd be deleted manually so this message shd not be appear. 如果我应该做一些删除wxpython的wxwindows或位图的事情(我认为wxpython / python的某些句柄或某些obj像dict或list都在内存中,所以我手动将其删除,它的感知仅是对还是错),如果我是的,然后手动删除wxpython的什么内容,因此不会显示此消息。

Any help really appreciable. 任何帮助都非常可观。 Thanks in advance! 提前致谢!

Start debugging it, and see where it crashes. 开始对其进行调试,然后查看其崩溃位置。 If you are not familiar with pdb or such debugger try print statements to pinpoint the location where it crashes, once you are sure what code crashes may be we can help then. 如果您不熟悉pdb或此类调试器,请尝试使用print语句来确定崩溃的位置,一旦您确定可能会崩溃的代码,我们将为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM