similar to: win32-eventlog problem

Displaying 20 results from an estimated 5000 matches similar to: "win32-eventlog problem"

2006 May 17
3
Need a little help with the pureRubywin32-eventlog
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Berger, Daniel > Sent: Wednesday, May 17, 2006 12:07 PM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Need a little help with the > pureRubywin32-eventlog > > > >
2007 Dec 05
21
Fwd: win32/process problem
Any ideas? ---------- Forwarded message ---------- From: Christian Kerth <christian.ke... at dynamicmedia.at> Date: Dec 5, 8:28 am Subject: win32/process problem To: comp.lang.ruby I have an application that consists of serveral independent parts. I want to use the Windows Process API to spawn the different processes. e.g. require ''rubygems'' require
2006 May 17
1
Need a little help with the pure Ruby win32-eventlog
Hi all, I''m working on the EventLog#read method for the pure Ruby version of win32-eventlog, but I''m stuck on the get_description private method. Here are the problems: * I don''t think I''m advancing the EVENTLOGRECORD properly between iterations. Take a look at the end of the "while dwread > 0" loop. I get some records, but not all of them.
2006 Jan 05
7
[Fwd: [win32utils-help][6822] Eventlog problem]
Dang, I thought we solved this. Any ideas? Dan PS - I realized after reading this I forgot to bump the version number for 0.3.3 - I''ve uploaded a new zip file with the correct version number. -------------- next part -------------- An embedded message was scrubbed... From: alain Fioretti <noreply at rubyforge.org> Subject: [win32utils-help][6822] Eventlog problem Date: Thu, 5
2007 Dec 04
4
eventlog
Hi, Hm, the string inserts are different, too. Any encoding issues? Your user name uses extended ASCII, too, right? Not sure if that''s significant or not. I''ve cc''d the win32utils-devel list to see if anyone has any ideas. Thanks, Dan botp wrote: > On 12/4/07, Daniel Berger <djberg96 at gmail.com> wrote: >> Can you tell us which record numbers in
2007 Aug 25
2
Speeding up win32-eventlog
Hi all, I released win32-eventlog 0.4.5 today. It''s still a bit on the slow side. The profiler (and general testing) indicates that it''s line 696 that''s the major culprit: va_list = str.split(0.chr)[0...num] Other than changing 0.chr to a literal "\0", does anyone have a way to speed this up? It''s not crucial, but I thought it might make a nice
2008 May 17
2
Problem reading log with win32-eventlog - buffer too small
Hi all, A user recently ran into an issue with win32-eventlog and the EventLog#read method when reading a saved log file. It seems that there''s an issue. After some experimentation I found that the problem seems to be that the initial buffer to ReadEventLog() in line 558 is too small, so it tries a second call to ReadEventLog() with a larger buffer. The problem is that, after I
2007 Nov 28
4
Can''t write to "Windows PowerShell" source with win32-eventlog
Hi all, Tim Uckun reported, and I''ve confirmed, that you can''t write to the Windows PowerShell event source for some reason. Tim thought it might be because of the space in the name, but my attempt to quote it did not seem to help. In order to follow along, install PowerShell, create the foo.dll using the foo.mc file in the ''test'' directory, and try the
2006 May 21
6
Possible problems with EventLog#write
Hi, I''ve got EventLog#write and EventLog.add_event_source methods done. Well, I *think* they''re done, but I can''t get the data (text) to work properly, and I''m not sure if it''s a bug in my .mc file, the add_event_source method, the write method, or just a goof in my test file. The source, category and event id seem to be ok. However, the
2004 Oct 18
0
RE: Another Interesting "Problem" with Win32-EventLog
> -----Original Message----- > From: Joey Gibson [mailto:joey@joeygibson.com] > Sent: Monday, October 18, 2004 10:07 AM > To: Berger, Daniel > Cc: win32utils-devel@rubyforge.org > Subject: Re: Another Interesting "Problem" with Win32-EventLog > > > Berger, Daniel wrote: > > > I cannot duplicate this on my Windows XP Pro box here at work. > >
2006 Aug 08
2
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
2004 Oct 18
0
RE: Another Interesting "Problem" with Win32-EventLog
> -----Original Message----- > From: Joey Gibson [mailto:joey@joeygibson.com] > Sent: Monday, October 18, 2004 9:29 AM > To: Ruby-Talk; Berger, Daniel > Subject: Another Interesting "Problem" with Win32-EventLog > > > After Daniel patched the Win32-EventLog code to properly handle > "strange" event messages (I''ll leave it to Daniel to
2004 Oct 19
0
RE: Another Interesting "Problem" with Win32-EventLog
> -----Original Message----- > From: Joey Gibson [mailto:joey@joeygibson.com] > Sent: Tuesday, October 19, 2004 6:11 AM > To: ruby-talk@ruby-lang.org; Berger, Daniel > Subject: Re: Another Interesting "Problem" with Win32-EventLog > > > Daniel Berger wrote: > > >After getting home from work today I tried again on my home machine. > >My
2004 Feb 25
5
Wide strings and LPCTSTR types
All, I was experimenting with converting LPCTSTR strings to wide strings with something like this: // Converts a Ruby string to a LPWSTR LPCTSTR AllocWideLString(VALUE rbString){ char* str = STR2CSTR(rbString); int length = (strlen(str)+1) * sizeof(WCHAR); LPCTSTR lpStr = (LPCTSTR)malloc(length); MultiByteToWideChar( CP_ACP, 0, str, strlen(str)+1,
2006 Dec 14
11
Tweak to win32-eventlog
All, I got a bug report from Greg Holmes where the description wasn''t being returned properly. At the moment, if there''s no event associated with the event id, then the description is empty. However, it turns out that there can still be associated information about the event. So, I propose the following tweak to the get_description private method: # If FormatMessage()
2004 Feb 26
2
Trivial API question
I know - I like to futz. I''m thinking of changing the way I pass optional arguments. This is from EventLog: # Write an event to the event log # Current way el.report_event( "source" => "foo", "category" => 0x2, "event_id" => 0x3, "data" => "Warning! Danger Will Robinson!", "type"
2006 Feb 21
9
Rails and Windows Active Directory Authentication?
Hello All, I know there is a component for integrating LDAP with Rails but is anyone doing any Windows Active Directory Authentication to a Rails app? I am rebuilding a site that was constructed out of asp and I would like to rebuild/improve it via rails. On the requirements side I will need to communicate with Active Directory and I will be required to use MSSQL for the database. Can anyone
2006 Mar 10
7
ODBC adapter connection help please.
Does anyone have any experience getting ODBC to work? I could really use some help here. I''m having trouble accessing a db2 database via odbc using rails. It''s an external database, that I import data from. I have placed the connection code in my model : unless connected? establish_connection( :adapter => "odbc", :dsn => "<dsn
2004 Oct 14
0
More on the description problem in win32-eventlog
I think I''ve narrowed it down to this call in eventlog.h hModule = LoadLibraryEx( szExeFilePath, 0, DONT_RESOLVE_DLL_REFERENCES ); In all cases where the description is returning nil instead of actual text, this appears to be the culprit. I''ll do some more research. In the meantime, ideas welcome. :) Dan
2006 May 10
5
[Fwd: tailing error]
-------------- next part -------------- An embedded message was scrubbed... From: =?iso-8859-1?Q?Pe=F1a=2C_Botp?= <botp at delmonte-phil.com> Subject: tailing error Date: Tue, 9 May 2006 11:21:03 +0800 Size: 1852 Url: http://rubyforge.org/pipermail/win32utils-devel/attachments/20060509/45783cb1/attachment.eml