[Win32utils-devel] Fwd: win32/process problem

Heesob Park phasis at gmail.com
Thu Dec 6 04:08:01 EST 2007


2007/12/6, Daniel Berger <djberg96 at gmail.com>:
>
> Any ideas?
>
>
> ---------- Forwarded message ----------
> From: Christian Kerth <christian.ke... at dynamicmedia.at>
> Date: Dec 5, 8:28 am
> Subject: win32/process problem
> To: comp.lang.ruby
>
>
> I have an application that consists of serveral independent parts.
>
> I want to use the Windows Process API to spawn the different
> processes.
>
> e.g.
>
> require 'rubygems'
> require 'win32/process'
>
> x = Process.create(:app_name => "rubyw learnbase_server.rb")
>
> puts x.process_id
>
> puts a process id, but i get the error: [BUG] Segmentation fault.
>
> Not even x = Process.create(:app_name => "notepad") works. It starts
> notepad, but i get the same error.
> --
> Posted viahttp://www.ruby-forum.com/.



Though it is doubtful whether this is the cause or not,
Insert flowing two lines before ProcessInfo.new (line #409 of process.rb)
might be helpful.

      CloseHandle(procinfo[8,4].unpack('L').first)
      CloseHandle(procinfo[12,4].unpack('L').first)

Regards,

Park Heesob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/win32utils-devel/attachments/20071206/0e9c07f7/attachment.html 


More information about the win32utils-devel mailing list