similar to: win32-mmap followup

Displaying 20 results from an estimated 10000 matches similar to: "win32-mmap followup"

2004 Mar 13
0
Quick thought on win32-mmap
I suggest getting rid of the hash style arguments fior new() for this package. In this particular case, you already have a class and accessors, so you can just use the yield trick, e.g. rb_yield(self) if rb_block_given_p(). Thus you can do: mm = Mmap.new do |m| m.namespace = file m.swapfile = sfile m.size = 1024 end Looks just as nice, and is a lot less code on the C side of
2007 May 04
5
[ win32utils-Bugs-10589 ] Bug in win32-mmap
Bugs item #10589, was opened at 2007-05-04 12:01 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=10589&group_id=85 Category: win32-mmap Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Daniel Berger (djberg96) Summary: Bug in win32-mmap Initial Comment: Ruby 1.8.6 win32-mmap 0.2.1 Assigning
2004 Feb 21
1
win32-taskscheduler thoughts
I''ve updated taskscheduler.c and taskscheduler.h. The method names are now more Ruby-like (though I have to change a couple yet), and I''ve shortened the constant names, as well as moved the constants over to the .h file. I was thinking we should merge a few of these methods. I think "set_target_computer" and "new_work_item" could both be rolled into the
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
2004 Mar 09
6
win32-mmap test suite
I just tried running tc_mmap.rb and noticed that something rather curious seems to happen. The call to Mmap.new in setup seems to cause the test suite to just exit without ever actually running the tests. I reduced the test suite to just this bit of code. This works, although the final test (TypeError) does not pass - no exception in thrown. This is 1.8.1 on Win2k. Any ideas? Dan PS - I
2006 Oct 06
13
Need some help with latest win32-mmap
Hi all, I''ve got the latest win32-mmap code checked into CVS. Unfortunately, it seems that I''m not able to open an existing mapping and retrieve set data. Below is a simple example that seems like it ought to work but doesn''t. Any ideas? # map1.rb require ''win32/mmap'' include Win32 mmap = MMap.new(:name => ''alpha'', :size
2006 May 20
1
EventLog#tail followup
The solution I see is something like this: * Set a @last instance variable in the constructor. * In the read_last_record function, check to see if @last is nil. If it is nil, then it''s our first read. Use the current approach, and set @last to the record number. * If @last isn''t nil, use EVENTLOG_FORWARDS_READ | EVENTLOG_SEEK_READ flags instead, and use @last + 1 as the
2006 Feb 02
5
Fwd: win32-clipboard and Unicode zero bytes
Hi all, I''m forwarding this message from Brian Marick. If you run this test script and then paste the results into a Unicode aware text editor, you''ll notice that it only prints one character instead of three. I tried changing the strlen to _tcslen and strcpy to _tcscpy, but that didn''t help. I mucked around a bit with the MultiByteToWideChar function, too, but
2005 Aug 11
4
win32-process + ruby-breakpoint = strangebehavior
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Bill Atkins > Sent: Thursday, August 11, 2005 8:39 AM > To: win32utils-devel@rubyforge.org > Subject: [Win32utils-devel] win32-process + ruby-breakpoint = > strangebehavior > > > I''m getting really strange
2006 Apr 26
3
[ win32utils-Support Requests-4264 ] win32 process
Support Requests item #4264, was opened at 2006-04-26 15:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=4264&group_id=85 Category: Install Problem (example) Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: win32 process Initial Comment: I try to use the fork example, but I
2006 Feb 08
2
[ win32utils-Feature Requests-3502 ] Allow win32-open3 to take a block
Feature Requests item #3502, was opened at 2006-02-08 10:29 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85 Category: win32-open3 Group: Code Status: Open Resolution: None Priority: 4 Submitted By: Daniel Berger (djberg96) Assigned to: Park Heesob (phasis68) Summary: Allow win32-open3 to take a block Initial Comment: I think we
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
2007 Sep 21
3
win32-file-stat bug
Heya all, Anyone have any ideas on this one? http://rubyforge.org/tracker/index.php?func=detail&aid=13825&group_id=85&atid=411 It''s easy enough to rescue, I''d just like to know what MRI does in this case, so we can duplicate it. Regards, Dan
2004 Mar 11
5
win32-etc-0.2.2 testing wanted
I''ve commited code for win32-etc 0.2.2, which adds the configure_user and configure_group methods. Testing appreciated. On my home system, I can''t get configure_user to work, but I haven''t any real idea why it fails. The configure_group method seems to work fine, however. Dan _________________________________________________________________ Fast. Reliable. Get
2006 Jun 21
4
Yet another data structure + pack/unpack question (win32-service)
Hi all, If you take a look at the service.rb file in the win32-service repository (the new one in the toplevel repository path), I''ve got this bit of code, which succeeds, but I can''t seem to unpack the data structure properly. Did I pack it wrong to begin with? I should know this but I''m spacing out. proc_status =
2006 Jun 19
2
win32-service cvs - potential issue with Service.services
Hi all, I''m preparing win32-service for an 0.5.1 release. I''ve made a couple minor changes and altered the test suite a bit. It passes on my box here, except that about half the time I get this error: 1) Error: test_services(TC_Win32Service): Win32::ServiceError: OpenService() call failed: The handle is invalid. test/tc_service.rb:227:in `services''
2004 Oct 13
4
win32-eventlog problem
Hi all, I''ve logged a new bug for win32-eventlog based on Joey Gibson''s ruby talk post (116528). Park, I''ve assigned it to you for now, figuring that you''re probably the one who best knows how to fix it. All help welcome. Dan
2004 Feb 25
1
win32-mmap committed
Hi all, I have committed win32-mmap package. It is similar to mmap or shared memory of unix Basically, it can be used for variable sharing like this In server side ================================== m = Mmap.new a = 1 m.setvar("a",a) =================================== In client side ================================== m = Mmap.new(''reuse''=>true) a =
2004 Apr 29
3
win32-ipc bug?
Either I''ve been up too late, or the timeout value passed to Ipc.new isn''t actually saved anywhere. Am I wrong? Anyway, I''ve added docs and a test suite for win32-ipc. Feel free to take a look and make sure there aren''t any glaring errors. Thanks. Dan PS - I''m hoping to release win32-event 0.2.0 and win32-ipc 0.1.0 this weekend unless there are
2004 Oct 08
2
win32-popen3 just about ready
Hi all, Well, what''s in CVS at the moment is what I''m planning on releasing tomorrow, unless anyone has any objection. Please test, check out the docs, etc. Let me know if there''s anything fatal I''m missing. Regards, Dan