[Win32utils-devel] [ win32utils-Bugs-4101 ] create hash param
noreply at rubyforge.org
noreply at rubyforge.org
Sun Apr 16 01:54:26 EDT 2006
Bugs item #4101, was opened at 2006-04-14 08:27
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85
Category: win32-process
>Group: Code
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Nobody (None)
>Assigned to: Daniel Berger (djberg96)
Summary: create hash param
Initial Comment:
hi,
problem with process, when I do
pid = Process.create(
:app_name => command[0],
:creation_flags => Process::DETACHED_PROCESS||Process::ABOVE_NORMAL,
:startf_flags=> Process::USESHOWWINDOW,
:sw_flags => Process::SW_MINIMIZE
)
it appear in the normal show windows, ane the ABOVE_NORMAL is'nt used.
it seems that the parameters arent used .
any help?
----------------------------------------------------------------------
>Comment By: Daniel Berger (djberg96)
Date: 2006-04-15 22:54
Message:
The bug has been fixed in CVS and will be released tomorrow. Also, as per Heesob's comments, use '|', not '||'.
Thanks for the report.
Dan
----------------------------------------------------------------------
Comment By: Park Heesob (phasis68)
Date: 2006-04-15 18:15
Message:
First, there is bug in process.c line #482. modify
rbFlags = rb_hash_aref(rbArgs,rb_str_new2("creation_flags")) || INT2NUM(0);
to
rbFlags = rb_hash_aref(rbArgs,rb_str_new2("creation_flags"));
if(rbFlags==Qnil) rbFlags = INT2NUM(0);
Second, modify your code
Process::DETACHED_PROCESS||Process::ABOVE_NORMAL,
to
Process::DETACHED_PROCESS|Process::ABOVE_NORMAL,
Hope this helps,
Park Heesob
----------------------------------------------------------------------
Comment By: Tophe Vigny (tophe)
Date: 2006-04-14 08:29
Message:
pid = Process.create(
:app_name => command[0],
:creation_flags =>Process::DETACHED_PROCESS
:sw_flags => Process::SW_MINIMIZE
)
won't work too !
please advice
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85
More information about the win32utils-devel
mailing list