From: Arthur E. <ar...@ia...> - 2004-09-24 01:01:58
|
Hi, I'm trying to have multiple sockets updating progressbars and textual status fields in a pythoncard window. I tried different approaches, but am having very weird problems (yes, I'm rather new to python and card). The most straight forward approach is to use asyncore as outlined here: http://effbot.org/zone/effnews-1.htm I pass a reference to the async class, so it can find the widgets to update. This works, but after a number of subsequent downloads, python bails out with ugly errors like Bus error, segmentation fault.. also rather strange visual anomalies occur; progressbars painted all over the window, etc. nice, but not for this application. To me it looks like some memory corruption occurs, but how does this happen? Circular references? Can I avoid these? Has anyone done something similar? I tried threads, but had exactly the same problems, believing me that it has to do with how I try to access the widgets from an instance of a class. When I use the asyncore supposedly non blocking sockets, pythoncards GUI still freezes up. Event loop problems? Hope my description rings a bell somewhere. Arthur |