Bugs item #4101, was opened at 2006-04-15 00:27
You can respond by visiting:
http://rubyforge.org/tracker/
?func=detail&atid=411&aid=4101&group_id=85
Category: win32-process
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: create hash param
Initial Comment:
hi,
problem with process, when I do
pid = Process.create(
:app_name => command[0],
:creation_flags => Process: ETACHED_
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: Park Heesob (phasis68)
Date: 2006-04-16 10: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: ETACHED_
PROCESS||Process::ABOVE_NORMAL,
to
Process: ETACHED_
PROCESS|Process::ABOVE_NORMAL,
Hope this helps,
Park Heesob
------------------------------------------------------------
----------
Comment By: Tophe Vigny (tophe)
Date: 2006-04-15 00:29
Message:
pid = Process.create(
:app_name => command[0],
:creation_flags =>Process: ETACHED_
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
_______________________________________________
win32utils-devel mailing list
win32utils-devel rubyforge.org
http://rubyforge.org/mailman/listinfo/win32utils-devel
|