[Win32utils-devel] Infinite loop bug in win32-eventlog?

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Thu Oct 28 14:44:52 EDT 2004

Hi all,

I hit an infinite loop trying to read starting at a specific record
number.  Did I do something wrong here?

# logtest.rb
require "win32/eventlog"
include Win32

e = EventLog.open("Application")

# Read only record number 250+
e.read(EventLog::SEEK_READ|EventLog::FORWARDS_READ,250){ |s|
   p s




More information about the win32utils-devel mailing list