Pe?a wrote:> I hope I can help why it segs.seg implies a bug, right?
> is FormatMessage always being accessed? when is it accessed? is it pure
ruby? Can i place a stacktrace before the actual code?
>
It''s pure Ruby. Well, it''s using Win32API behind the scenes.
FormatMessage() is being called when get_last_error is called. So,
there''s an error happening somewhere, but it doesn''t seem to
like the
parameters much. I can''t tell for certain without a stack trace.
One thing you could do is modify the FormatMessage method (not the
constant) in error.rb and print out the parameters before the call to
see what they are.
Thanks,
Dan>
> # -----Original Message-----
> # From: Daniel Berger [mailto:djberg96 at gmail.com]
> # Sent: Tuesday, August 08, 2006 9:39 AM
> # To: Pe?a, Botp
> # Cc: Development and ideas for win32utils projects
> # Subject: Re: win32 eventlog dup
> #
> # That''s weird. Line 296 is just a call to FormatMessage().
> #
> # Folks on the mailing list - could this be a wide character
> # issue? Buffer
> # too small maybe?
> #
> # Regards,
> #
> # Dan
> #
> # Pe?a wrote:
> # > forgot:
> # >
> # > it segfaults on the win2k3 server (domain controller).
> # >
> # > it has _not_ segfault on my winxp pro though.
> # >
> # >
> # >
> # > # -----Original Message-----
> # > # From: Pe?a, Botp
> # > # Sent: Tuesday, August 08, 2006 8:52 AM
> # > # To: ''Daniel Berger''
> # > # Subject: RE: win32 eventlog dup
> # > #
> # > # Hi Daniel,
> # > #
> # > # I''m afraid it''s not stable enough yet.
> # > # Running it on our server, it segs (but not immediately).
> # > # Catch is, it is not eventlog but windows-pr...
> # > #
> # > # c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.5.2-mswin32/lib/wi
> # > ndows/error.rb:296
> # > # : [BUG] Segmentation fault
> # > # ruby 1.8.4 (2006-04-14) [i386-mswin32]
> # > #
> # > #
> # > # thanks and kind regards -botp
> # > #
> # > #
> # > #
> # > # # -----Original Message-----
> # > # # From: Pe?a, Botp
> # > # # Sent: Monday, August 07, 2006 11:53 AM
> # > # # To: ''Daniel Berger''
> # > # # Subject: RE: win32 eventlog dup
> # > # #
> # > # # From: Daniel Berger [mailto:djberg96 at gmail.com]
> # > # # # I actually already confirmed that it worked from my own
> # > # testing and
> # > # # # Heesob also confirmed it. It was released as part of
> # 0.4.2, so
> # > # # # hopefully that will work for you. :)
> # > # #
> # > # # Hi Daniel,
> # > # # I just downloaded the 0.4.2 and Yes it does work! I will try
> # > # # testing it on our servers and test it''s stability.
> # > # #
> # > # # thank you again for everything.
> # > # #
> # > # # kind regards -botp
> # > # #
> # >
> # >
> #
> #
>
>