Displaying 20 results from an estimated 20000 matches similar to: "win32-changenotify 0.5.0 nearing release"
2006 Dec 21
0
Curious win32-changenotify behavior - numbers instead of names
Hi all,
Ruby 1.8.5
win32-ipc 0.4.2 (or 0.5.0 in cvs)
win32-changenotify 0.4.2
I noticed something strange tonight while tinkering with
win32-changenotify. Here''s my sample script:
# cntest.rb
require ''win32/changenotify''
include Win32
path = "C:\\test"
filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME
cn = ChangeNotify.new(path, true, filter)
2006 Nov 17
2
[ win32utils-Bugs-6722 ] win32-changenotify fails on Ruby 1.8.4
Bugs item #6722, was opened at 2006-11-17 05:17
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=6722&group_id=85
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: win32-changenotify fails on Ruby 1.8.4
Initial Comment:
throws an exception when loading, roughly
2007 Aug 04
10
Need some help with pure Ruby win32-changenotify
Hi all,
I know it''s deprecated, but people seem to still be using
win32-changenotify, so I thought I''d see if I could make it pure Ruby.
Also, I thought it would be a good opportunity to test passing a custom
Win32::Event object.
I''m mostly done I think, but I''m having trouble unraveling the
FILE_NOTIFY_INFORMATION struct buffer. Please check out the
2007 Aug 06
0
win32-changenotify and events
Hi all,
I''ve made some changes to the way that events are handled in
win32-changenotify, and I wanted to verify that they were both
appropriate and sensical.
First, win32-changenotify now requires win32-event. In the constructor,
if an event isn''t explicitly passed, a new Win32::Event object is
created (instead of calling CreateEvent directly).
Then, in the
2005 Jan 06
0
Some thoughts on win32-changenotify
Hi all,
As things stand now, you can do something like this with
win32-changenotify:
require "win32/changenotify"
include Win32
filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME |
ChangeNotify::LAST_WRITE
cn = ChangeNotify.new("c:\\",false,filter){
puts "Something changed"
}
cn.wait
You can pass a block that''s executed when a change occurs, but
2007 Aug 08
12
Some more win32-changenotify analysis
Hi all,
I decided to check the responsiveness of the pure Ruby vs C extension
versions of win32-changenotify. I setup this little file generator program:
a = []
10.times{ |n|
a << Thread.new{
File.open("File_#{n}", ''w''){ |fh| fh.puts "test #{n}" }
}
}
a.each{ |t| t.join }
The pure Ruby version did not do so well. In some cases it
2005 Apr 21
3
win32-changejournal modification
Hi all,
Should we make the same change for win32-changejournal
that we made for win32-changenotify (i.e yield an
array of structs rather than a single struct)?
Any objections?
Dan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2005 Jan 20
1
ChangeNotify help wanted
Hi all,
I''ve checked in some code to win32-changenotify. Unfortunately, it
doesn''t work right. I need some help. I don''t understand what,
exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd
argument, nor how to read the data back out.
There''s also a WCHAR issue that needs to be worked out with regards to
the FileName
2008 Jun 04
2
Win32-ole start
Hi all,
Since I didn''t get any takers on the win32-ole rewrite I thought I''d
take a stab at starting it. Here''s what I''ve got so far (along with some
extra constants in Windows::COM only in CVS), but the call to
CoCreateInstance() isn''t working. I''m not sure if I''m dealing with the
IDispatch interface properly:
# win32/ole.rb
require
2007 Sep 25
2
Bug in win32-api with void prototypes?
Hi all,
It seems that a void prototype requires an explicit argument in our
version of win32/api:
C:\>irb
irb(main):001:0> require ''win32/api''
=> true
irb(main):002:0> include Win32
=> Object
irb(main):003:0> require ''Win32API''
=> true
# Our version
irb(main):004:0> GetLastErrorA = API.new(''GetLastError'',
2006 Oct 13
2
win32-mmap - trying to marshal self
Hi all,
I realized the current implmentation has a problem - you can only get the last value set? I realized, after looking at the old C code, that it actually stores values in a hash and marshals the hash, not the values themselves.
That seemed clunky to me, though. I thought it would be more interesting if we just marshalled the entire mmap object and passed that back and forth.
2008 Jan 16
2
Problem with win32-open3 and net-ping
Hi all,
I''m seeing strange behavior with net-ping on Windows, which uses
win32-open3 (Open3.popen3) behind the scenes.
Download (or checkout) net-ping and run this:
ruby -Ilib test\tc_pingexternal.rb
It looks like the test suite is running twice. What''s happening?
Thanks,
Dan
This communication is the property of Qwest and may contain confidential or
privileged
2008 Apr 25
4
win32-mmap test failures
Hi all,
This is odd. It looks to me like we have all 4 variations of memcpy set
in Windows::MSVCRT::Buffer but somehow this one creeps up. I actually
noticed it in a few cases with that earlier mmap sub/replace example,
but I wasn''t sure what was happening.
Note that windows-api 0.2.3 and windows-pr-0.8.3 are the latest versions
in CVS, but this happens with windows-api-0.2.2 and
2005 Feb 04
0
RE: Bug fix
> -----Original Message-----
> From: CT [mailto:demerzel@gmail.com]
> Sent: Friday, February 04, 2005 3:42 PM
> To: Berger, Daniel
> Subject: Re: Bug fix
> Okay, I tried 0.3.1, and the wait call blocks till a change
> occurs. So it''s working:)
>
> But I would still need a loop to get a daemon-like behaviour,
> since the wait terminates when a change
2005 Jan 25
3
Change Journals
Hi,
I''ve released win32-changenotify 0.3.0 today. Take a look.
Park and I have discussed a Ruby interface to change journals a little bit:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/creating_modifying_and_deleting_a_change_journal.asp
Park, would you like to do this, or did you want me to? I wasn''t sure from
your RubyForge post.
Also, do
2007 Nov 13
1
win32-api idea - wide method first based on $KCODE
All,
Currently, the Win32::API.new method will search for the function name,
then the ''A'' (ANSI) name, and finally the ''W'' (Wide) name. The code
looks something like this:
fProc = GetProcAddress(hLibrary, TEXT(RSTRING(v_proc)->ptr));
if(!fProc){
VALUE v_ascii = rb_str_new3(v_proc);
v_ascii = rb_str_cat(v_ascii, "A", 1);
fProc =
2006 Dec 04
9
mongrel install on win32 XP problems
I can''t get mongrel installed on a Win XP. I keep getting some unknown
error with this "win32-service-0.5.2". While it states results are
logged, the file is empty - not much help. I even tried complete
uninstall of ruby and reinstalled ruby 1.8.5-21. But no luck.
Oddly, I had no problem installing earlier on a Win 2K machine. Is
there something special about XP?
here
2005 Apr 24
0
Change to win32-changejournal
Heesob,
Can you please alter win32-changejournal to return an
array of structs as you did for win32-changenotify?
Thanks.
Dan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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
2006 Jun 19
9
win32-service patch
Attached is a patch and my service.c if there is any difficulty
applying the patch. I did the following:
1. Created a ruby thread (Ruby_Service_Ctrl), that polls against a
simple integer value (protected by a critical section). I was worried
this would be "expensive"; however, I found the rb_thread_polling
method and it seems to work well.
2. When an event occurs in Service_Ctrl it