Win32/process problem

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.

On Dec 5, 8:28 am, Christian K. removed_email_ad[email protected]
wrote:

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.

Can you provide more information?

What is the OS, Ruby version and win32-process version?

What result of “p x” ?
x = Process.create(:app_name => “notepad”)
p x

Thanks,

Dan

Daniel B. wrote:

Can you provide more information?

What is the OS, Ruby version and win32-process version?

What result of “p x” ?
x = Process.create(:app_name => “notepad”)
p x

Thanks,

Dan

OS: Windows XP prof SP2
Ruby: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
Win32: 0.5.4 (updated yesterday)

p x prints: #

The funny thing is, i have setup a vmware session with xp prof sp2, ruby
1.8.6 and win32 0.5.4 and it works there.

thx ck

Christian K. wrote:

Daniel B. wrote:

Can you provide more information?

What is the OS, Ruby version and win32-process version?

What result of “p x” ?
x = Process.create(:app_name => “notepad”)
p x

Thanks,

Dan

OS: Windows XP prof SP2
Ruby: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
Win32: 0.5.4 (updated yesterday)

p x prints: #

The funny thing is, i have setup a vmware session with xp prof sp2, ruby
1.8.6 and win32 0.5.4 and it works there.

thx ck

I uninstalled the ruby win32 gem and reinstalled it.

Works now, thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs