Tony Cappellini wrote: > >> while 1: >> events=win32evtlog.ReadEventLog(hand,flags,0) >> if not events: >> break >> for event in events: >> print event.EventID, event.StringInserts >> >> then it all works as expected. >> > > This is what I'm doing. I have added the while 1 last week, after Mark > had suggested it. > It did not change anything. ReadEventLog() returns None on successive calls. > > Which versions of Python and Pywin32 are you using? >
XP SP3, Python 2.4.1, pywin32 214. Perhaps I should send you the C version of the same program that I wrote for testing, to see if it behaves differently. The code in pywin32 doesn't do that much processing -- it's mostly passthrough. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32