similar to: win32-mmap committed

Displaying 20 results from an estimated 20000 matches similar to: "win32-mmap committed"

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
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
2004 Mar 07
1
win32-mmap problem
Hi all, Ruby 1.8.1 (hand built, not the installer) Windows 2000 I was just playing with win32-mmap. I tried running the test_server.rb and test_client.rb. I started the server, which seems to be fine, but when I run the client I get this: C:\eclipse\workspace\win32-mmap-0.1.0\test>ruby test_client.rb C:/ruby/lib/ruby/1.8/ftools.rb:23:in `initialize'': Permission denied -
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.
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 May 01
1
win32-mutex
I''ve committed documentation and a test suite for win32-mutex. Once again, I''m looking for a good sample program that we can use for the test.rb file that really demonstrates what you can accomplish with it. I scoured the web but didn''t find anything good. On another note, I came across another implementation called "fmutex" that I thought might be worth
2007 May 04
1
Trying to get a good example for win32-mutex
Hi all, I''ve been going through the various IPC modules for Win32Utils and converting them to pure Ruby. I''m almost done with win32-mutex, but I can''t get the example to work. I keep getting this error: C:/Documents and Settings/djberge/workspace/win32-mutex/examples/mutex_test.rb:41: undefined method `+'' for nil:NilClass (NoMethodError) from
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
2004 Mar 13
1
win32-mmap followup
Oops - just realized that there aren''t accessors for namespace, swapfile, size, etc. Should we add them? Or don''t we want to because then it might become confusing as to whether those values were "shared"? Dan _________________________________________________________________ Store more e-mails with MSN Hotmail Extra Storage – 4 plans to choose from!
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,
2004 Mar 14
3
Re: RubyGems 0.2.0
Hello Chad, I installed and tried out rubygems for one of the win32-utils projects named win32-mmap. This is on Win XP (Home). Here is how I did it but got some errors (see at the end). I must be doing something wrong. Please help ... -- Shashank #------------------------------------------------------------ require ''rubygems'' spec = Gem::Specification.new do |s|
2006 Jul 04
0
Reworking win32-mmap for the pure Ruby version
Hi all, I was looking at win32-mmap today. I thought it might be worth it to rewrite this one as pure Ruby. In the process, I decided I don''t really like the current API very much. Just feels too clunky and not very friendly. I think we followed Win32::MMF too closely. Anyway, I have a very preliminary version in CVS that I was hoping folks could take a look at and comment on.
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 Nov 22
1
Win32 Service Timeout command
> -----Original Message----- > From: Jamey Cribbs [mailto:cribbsj at oakwood.org] > Sent: Tuesday, November 22, 2005 2:44 PM > To: Berger, Daniel > Subject: Win32 Service Timeout command > > > Hi, Dan. I have a quick question. Is there a way to set a timeout > variable when starting/creating a win32 service using your package? > When I attempt to start a
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 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 Nov 10
1
Silly question of the day:
Hi, > > Hi all, > > I noticed that I named the permission methods "get_permission" and > "set_permission". For some reason this is bugging me. Would anyone object > if I changed it to "get_permissions" and "set_permissions"? I don''t really > want to create an alias... > Following is the Result of the Google Search
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 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