IRC Logs for #circuits-dev Monday, 2013-01-14

*** Osso has joined #circuits-dev01:10
*** marky1991 has joined #circuits-dev02:23
*** anunnaki has quit IRC02:44
*** Osso has quit IRC03:38
*** Osso has joined #circuits-dev03:40
*** Osso_ has joined #circuits-dev03:55
*** mehere has quit IRC04:09
*** mehere has joined #circuits-dev04:11
*** Osso_ has quit IRC04:55
*** Osso has quit IRC07:48
*** marky1991 has quit IRC08:13
*** marky1991 has joined #circuits-dev08:14
*** Osso has joined #circuits-dev09:34
*** anunnaki has joined #circuits-dev10:23
*** marky1991 has quit IRC12:52
*** marky1991 has joined #circuits-dev12:52
*** anunnaki has quit IRC13:35
*** Osso has quit IRC13:44
*** marky1991 has quit IRC16:35
*** marky1991 has joined #circuits-dev16:36
marky1991prologic, could you look at some of my code to see if there is something obviously wrong? I'm getting strange behavior where if I trigger GenerateEvent events,it fails, but if I call _generate_events directly, it works17:09
marky1991it's some sort of context problem; the parameters are the same, but the results are different.17:10
marky1991I.e.: In this snippet http://circuits.codepad.org/oHhsQ1vG , if you uncomment the _generate_events call and comment out the fire call, it works17:11
marky1991The full file can be seen at http://marky1991.dyndns.org/archivos/test.py17:11
marky1991I just don't understand why it works when I directly call generate_events but ails when the system does it for me17:12
marky1991the strangest thing is that when it fails, it still runs the gnenerate_Events function correctly. The windows API call just returns a different value17:13
marky1991the api call claims that it worked, it just doesn't call the callback properly.17:13
marky1991I might go ask for help in a ctypes mailing list17:14
marky1991The only problrem is that it works depending on the circuits code and other people aren't going to know how circuits works...17:23
marky1991So I'm hoping there's some obvious circuits issue in there17:23
*** marky1991 has quit IRC20:51
*** marky1991 has joined #circuits-dev20:51
mehereHi marky, I think your approach is too complicated. What I found as a "recommended" approach to replace select in Windows is to simply create a thread for each file you want to read from an d put any results as (file_descriptor, data) on a queue. Then the poller (main therad) can simply retrieve data from the queue or wait on an associated semaphore with the message count. Actually, this is also what you did in Java until they in22:40
meheretroduced the nio library which was in 1.4.22:40
meherebbl22:40

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!