similar to: win32-changenotify and events

Displaying 20 results from an estimated 6000 matches similar to: "win32-changenotify and events"

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
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)
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 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
2006 Dec 07
0
Fwd: win32-service problems with patch
Got this today. Please take a look and let me know what you think. - Dan ---------- Forwarded message ---------- From: Kevin Burge <kevin.burge at systemware.com> Date: Dec 7, 2006 6:45 AM Subject: win32-service problems with patch To: djberg96 at gmail.com Hi Daniel, Thanks for win32-service. In the process of using it for running a reliable-msg (drb) server and clients, I had some
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
2005 Nov 26
1
Another patch of win32-service for nice startup.
Hi, I believe this patch would be a perfect solution for a lengthy initialization application. Added hStartEvent, service_init, checkpoint increments. ============================================================ --- temp/service.c 2005-11-27 00:03:30.000000000 +0900 +++ service.c 2005-11-27 00:01:58.000000000 +0900 @@ -14,6 +14,7 @@ static VALUE cDaemonError; static VALUE rbServiceStruct,
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
2007 Aug 09
0
win32-changenotify 0.5.0 nearing release
Hi all, I made some minor final changes to the win32-changenotify code (added accessors I forgot, updated the test suite, explicit type checking in the constructor, etc). The only somewhat major change that I made is that I now have the constructor yield/close if a block is given. Unless anyone objects to that, it''s going into 0.5.0. Otherwise, I''ll put 0.5.0 out tonight.
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
2004 Oct 23
0
win32-ipc, with blocks (code review please)
Does this look right? The places to look are wait and wait_for_multiple (which I modified to take the class as an argument, so that I could yield). Dan /**************************************************************************** * ipc.c - source for the win32-ipc package ****************************************************************************/ #include "ruby.h" #include
2020 May 24
0
Clients send tons of Notiftication requests
I am still fighting with this issue. I did the following: I connected to the NAS with a read-only account called kodi. I traversed various folders and I finally opened an image. Everything went fine. Looking at the logs, the get_entry mask file only shows the final folder: smbd_dirptr_get_entry mask=[Anhelina Viber] found Users/luca/Pictures/Canon/Alessandro/Amici/Anhelina Viber fname=Anhelina
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
2018 Mar 21
0
lld/lto/win32 crash on DIE code
It looks the problem lies in how your compiler generates debug info. LLVM doesn't expect DIDerivedType scope to be an instance of DICompileUnit. Here is a quick fix: DIE *DwarfUnit::getOrCreateContextDIE(const DIScope *Context) { - if (!Context || isa<DIFile>(Context)) + if (!Context || isa<DIFile>(Context) || isa<DICompileUnit>(Context)) However, I suggest talking to
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
2023 Jul 07
0
Very strange issue copying only certain files to a share
I've been troubleshooting this issue for over a week and am running out of ideas. Generally everything works fine. I can copy files into the share, create and delete files and folders. However when copying *some* files from windows specifically it will say "The destination already has a file named "a"". A size 0 file by that name is then created. No files exist in the
2009 Feb 19
0
Mac OS X file copy error in samba share on a samba-share
I have an issue with mac os x 2.5.6 who is trying to put a file on a samba share. Samba (3.0.28) is running on a CentOS 5.2 (2.6.18-92.1.13.el5). I put a file "users.txt" as user "carlo.maesen" and have the following Mac-error: "You cannot copy some of these items to the destination because their names are too long or contain invalid characters for the destination. Do
2018 Mar 20
2
lld/lto/win32 crash on DIE code
Op 20-3-2018 om 12:40 schreef Evgeny Leviant: > This one triggers an assertion in calculateSEHStateNumbers due to weird catchpad instruction > in @_island_debug_invoke and many other functions. The code expects either pointer to a filter > function or null in first operand, while you're passing pointer to structure: > > catchpad within %80 [{i8*, i8*}* anon..., ...] > >
2020 Aug 24
0
[PATCH v2v] Add ALT support
From: Mikhail Gordeev <obirvalger@altlinux.org> --- v2v/convert_linux.ml | 49 +++++++++++++++++++++++++++++++++++++++++++ v2v/convert_linux.mli | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml index a871d754f4..5ae83a2f66 100644 --- a/v2v/convert_linux.ml +++ b/v2v/convert_linux.ml @@ -52,6 +52,7 @@ let convert (g :
2016 Jan 26
2
Notification of file modification in subdirectories not working
I have output of another test with exactly the same behaviour This time I have pcap files from Samba and client PC. CHange to the file subfile.txt was made on another PC Looks like Samba sees change to the file but does not send it as a notification [2016/01/26 10:09:15.590689, 10, pid=12027, effective(1001, 1006), real(1001, 0)] ../source3/smbd/notify_internal.c:615(notify_trigger)