免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2112 | 回复: 0
打印 上一主题 下一主题

jmgrep.py hanging at self.Destroy() [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-31 23:47 |只看该作者 |倒序浏览
Hi, folks,
   I found this tool (see attached) from WWW and studied it for wxpython. The author stated
it ran on W2k with python 2.5.2. However I ran it on WinXP with python 2.5.4, it got hanging.

When I try to find a pattern from some text files in a particular directory and it gets hits ( some
patterns found over the files). then from GUI, I select File|Quit to exit, it gets hanging -- From
the Dos console window, Even I use ctrl+C, ctrl+Z, and ctrl+D to exit invalid.  So I trace through
the code, I find that it gets hanging in function def OnCloseWindow(self, event): self.Destroy() .
-- for this one line statement function, I have no idea how to debug self.Destroy() -- since it gets
hanging. What my understanding the issue is One: it is Python version bug. Two: the code design
has a bug that's hard to find ( I put print statement before and after self.Destroy(), it prints many
times, I don't know why ).

Does anybody know how to workaround it ? Or Explanations are much appreciated. Thanks !!!

Regards,

[ 本帖最后由 mjus 于 2009-8-31 23:59 编辑 ]

jmgrep.zip

6.48 KB, 下载次数: 25

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP