dagolden / Capture-Tiny

(Perl) Capture STDOUT and STDERR from Perl, XS or external programs
http://search.cpan.org/dist/Capture-Tiny/
39 stars 19 forks source link

Failure when used from a wxPerl GUI app on Windows #62

Open sciurius opened 1 year ago

sciurius commented 1 year ago

When Capture::Tiny is used from a wxPerl GUI app on Windows it fails with

 : Error from open(IO::Handle=GLOB(0xe2346b8), >&STDOUT): Bad file descriptor at C:/Users/Johan/ChordPro/pp/windows/build/script/../lib/Capture/Tiny.pm line 107.
        Capture::Tiny::_open(IO::Handle=GLOB(0xe2346b8), ">&STDOUT") called at C:/Users/Johan/ChordPro/pp/windows/build/script/../lib/Capture/Tiny.pm line 184
        Capture::Tiny::_copy_std() called at C:/Users/Johan/ChordPro/pp/windows/build/script/../lib/Capture/Tiny.pm line 357
        Capture::Tiny::_capture_tee(1, 1, 0, 0, CODE(0xe1f9530)) called at C:/Users/Johan/ChordPro/pp/windows/build/script/../lib/ChordPro/Delegate/ABC.pm line 991

I assume this is caused by the fact that a Windows GUI app has no STDIN, STDOUT and STDERR.