Subject: | Continous STDERR and STDOUT cause Wx App to freeze |
In padre if we run
while (1) { print 'blah'; warn 'blah' }
it will kill the app making it unusable.
After some talk with azawawi,
http://irclog.perlgeek.de/padre/2010-02-25#i_2031934
He came up with the fix attached to the diff on here.
--
work in progress
Subject: | patch.diff |
diff --git a/lib/Wx/Perl/ProcessStream.pm b/lib/Wx/Perl/ProcessStream.pm
index 0289c41..a0d59e6 100644
--- a/lib/Wx/Perl/ProcessStream.pm
+++ b/lib/Wx/Perl/ProcessStream.pm
@@ -565,6 +565,7 @@ sub Notify {
$event->SetLine( $linebuffer );
$event->SetProcess( $process );
$process->__get_handler()->AddPendingEvent($event);
+ Wx::wxTheApp->Yield();
}
@@ -579,6 +580,7 @@ sub Notify {
$event->SetLine( $linebuffer );
$event->SetProcess( $process );
$process->__get_handler()->AddPendingEvent($event);
+ Wx::wxTheApp->Yield();
}
}