hi, i don’t know wether this was discussed before:
any .rbw file that contains the line
$stdout.sync = true
will exit abnormally if printed to $stdout (allthough it makes no sence)
(if executed by double click, not executed by SciTe).
any .rbw file that contains the line
$stdout.sync = true
will exit abnormally if printed to $stdout (allthough it makes no sence)
(if executed by double click, not executed by SciTe).
it’s reproducable. - mr
$stdout.sync=true
3.times {|n| puts n; sleep 2}
Works for me on 98se
ruby 1.8.0 (2003-08-04) [i586-bccwin32]
At Thu, 7 Aug 2003 08:03:59 +0900, meinrad.recheis wrote:
any .rbw file that contains the line
$stdout.sync = true
will exit abnormally if printed to $stdout (allthough it makes no sence)
(if executed by double click, not executed by SciTe).
Perhaps, you would associate .rbw with rubyw.exe. rubyw.exe is
a window mode application, so that no stdout handle is opened.
At Thu, 7 Aug 2003 08:03:59 +0900, > meinrad.recheis wrote:
any .rbw file that contains the line
$stdout.sync = true
will exit abnormally if printed to $stdout (allthough it makes no sence)
(if executed by double click, not executed by SciTe).
Perhaps, you would associate .rbw with rubyw.exe. rubyw.exe is
a window mode application, so that no stdout handle is opened.
#<‘C:\TEMP\sst.txt’> (Output)
ruby 1.8.0 (2003-08-04) [i586-bccwin32]
Start: Fri Aug 08 01:35:50 2003
End : Fri Aug 08 01:35:52 2003
#</>
Console appeared, ran OK.
Even using rubyw.exe, I expect to see a console when writing
to STDOUT. The usefulness is that, unlike with ruby.exe,
one isn’t opened automatically.
I believe this is contrasting behaviours of winmain{} and main{}
in C rather than of Ruby itself.
Any corrections will be welcome.
This shows that (if you are still in any doubt) upgrading to
Ruby180 is a good idea.
Even using rubyw.exe, I expect to see a console when writing
to STDOUT. The usefulness is that, unlike with ruby.exe,
one isn’t opened automatically.
I believe this is contrasting behaviours of winmain{} and main{}
in C rather than of Ruby itself.
Usa reports it seems to be due to the difference between mswin
and bccwin, rather than ruby versions. Furthermore, bccwin
version rubyw.exe opens a console by just starting.
Euuhhh, hadn’t noticed that.
Ruby Development Environment (RDE) ensures that I never see a console
(using ruby or rubyw). If I did, I’d have been screaming
I believe this is contrasting behaviours of winmain{} and main{}
in C rather than of Ruby itself.
Usa reports it seems to be due to the difference between mswin
and bccwin, rather than ruby versions. Furthermore, bccwin
version rubyw.exe opens a console by just starting.