我有一个连续在服务器上运行的python程序,它将一些数据放入MYSQL数据库并加载一些.它还使用TCP/IP连接.问题是大约24小时后它会产生运行时错误:
Microsoft Visual C++ Runtime Library!
Runtime Error!
Program: C:\python27\pythonw.exe
This application has requested the Runtime to terminate it in an unusual way.
Run Code Online (Sandbox Code Playgroud)
然后我打开OK python shell关闭.当我关闭所有python文件并检查Windows任务管理器时,我看到仍然有一个pythonw.exe文件打开!!!
我正在使用IDLE来运行我的应用程序.