Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 95341
BY: Little Snake (little_snake)
DATE: 2010-11-25 11:53
SUBJECT: EventLog.open("Application") fails

 

Hello,

I have got problem with EventLog and would greatly appreciate help.

The error message is:

(eval):3:in `OpenEventLog': undefined method `call' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/win32-eventlog-0.5.2/lib/win32/eventlog.rb:139:in `initialize'
from ./wlogex.rb:7:in `open'
from ./wlogex.rb:7

the offending line is:

handle = EventLog.open("Application")
(comes from original Daniel Berger's anouncement)

the test program delivered with the gem package fails too.

1) Error:
test_backup(TC_EventLog):
NoMethodError: undefined method `call' for nil:NilClass
(eval):3:in `OpenEventLog'
/usr/lib/ruby/gems/1.8/gems/win32-eventlog-0.5.2/lib/win32/eventlog.rb:139:in `initialize'
test_eventlog.rb:22:in `new'
test_eventlog.rb:22:in `setup'

I am using ruby in Cygwin on Windows XP.

my gems versions are:

test-unit (2.1.1)
win32-api (1.4.6)
win32-event (0.5.2)
win32-eventlog (0.5.2)
win32-ipc (0.5.3)
windows-api (0.4.0)
windows-pr (1.1.2)

Could anybody help me with this?

Little Snake


Thread View

Thread Author Date
EventLog.open("Application") failsLittle Snake2010-11-25 11:53
      RE: EventLog.open("Application") failsDaniel Berger2010-12-01 14:07
            RE: EventLog.open("Application") failsLittle Snake2010-12-02 15:06
                  RE: EventLog.open("Application") failsDaniel Berger2010-12-04 13:42
                        RE: EventLog.open("Application") failsLittle Snake2010-12-07 07:22
                              RE: EventLog.open("Application") failsDaniel Berger2010-12-07 13:49
                                    RE: EventLog.open("Application") failsLittle Snake2010-12-07 15:14
                                          RE: EventLog.open("Application") failsDaniel Berger2010-12-09 12:08
                                                RE: EventLog.open("Application") failsLittle Snake2010-12-10 10:19

Post a followup to this message