[Win32utils-devel] Trying to get a good example for win32-mutex
Berger, Daniel
Daniel.Berger at qwest.com
Fri May 4 11:08:18 EDT 2007
> -----Original Message-----
> From: win32utils-devel-bounces at rubyforge.org
> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of
> Berger, Daniel
> Sent: Friday, May 04, 2007 8:57 AM
> To: Development and ideas for win32utils projects
> Subject: [Win32utils-devel] 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 C:/Documents and
> Settings/djberge/workspace/win32-mutex/examples/mutex_test.rb:38:in
> `times'
> from C:/Documents and
> Settings/djberge/workspace/win32-mutex/examples/mutex_test.rb:38
>
> Here's the updated mutex_test.rb file. I'm using the
> win32/mutex.rb file in CVS, win32-mmap 0.2.1 and win32-process 0.5.2:
<snip>
Further review indicates that the problem is setting attributes to a
value of zero. I fired up two irb sessions, creating an mmap in one and
opening it in the other. When I do "mm.gvalue = 5", everything works
alright. However, if I set it to 0, I start getting:
ArgumentError: marshal data too short
from
C:/ruby/lib/ruby/gems/1.8/gems/win32-mmap-0.2.0/lib/win32/mmap.rb:335:in
`load'
from
C:/ruby/lib/ruby/gems/1.8/gems/win32-mmap-0.2.0/lib/win32/mmap.rb:335:in
`method_missing'
from (irb):7
So, looks like a bug in win32-mmap. Disregard.
Dan
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
More information about the win32utils-devel
mailing list