记解决pycharm报错 Process finished with exit code -1073741819 (0xC0000005)

最近在做一个抢单项目:
记解决pycharm报错 Process finished with exit code -1073741819 (0xC0000005)_第1张图片

python项目莫名出现:Process finished with exit code -1073741819 (0xC0000005),程序没执行结束退出!
记解决pycharm报错 Process finished with exit code -1073741819 (0xC0000005)_第2张图片
网上找了好多解决方案,没有一个能用得,减低python版本!替换虚拟环境!重启系统!统统不行!!!
最后再审核代码的时候,把创建线程的代码改了一下,把threading.Thread() 改成了pool.submit()线程池的形式,发现终于解决了!!!

后来发现问题依然存在,参考这哥们的思路,参考链接,分析代码,在线程池处寻找解决出路。首先,多个线程池改成一个线程池(问题依旧);最好,发现这块代码:记解决pycharm报错 Process finished with exit code -1073741819 (0xC0000005)_第3张图片应该是这个死循环导致的问题的资源竞争问题;
记解决pycharm报错 Process finished with exit code -1073741819 (0xC0000005)_第4张图片记解决pycharm报错 Process finished with exit code -1073741819 (0xC0000005)_第5张图片终于搞定!!!

你可能感兴趣的:(源码调试,python)