[Windows] "my_app/": prevent crash of gui exe on print output

This commit is contained in:
polos 2016-12-29 20:43:49 +01:00
parent b59821c838
commit 10c6c4d2a3
3 changed files with 9 additions and 10 deletions

View file

@ -39,12 +39,13 @@ QString EQL::home() {
path.append('/'); }
return path; }
/*
void EQL::ignoreIOStreams() {
// [Windows] print output would cause the executable to crash
// TODO
}
*/
// [Windows] print output would cause a gui exe to crash (without console)
eval("(setf *standard-output* (make-broadcast-stream)"
" *trace-output* *standard-output*"
" *error-output* *standard-output*"
" *terminal-io* (make-two-way-stream (make-string-input-stream \"\")"
" *standard-output*))"); }
void EQL::exec(const QStringList& args) {
cl_object s_qtpl = cl_intern(1, make_constant_base_string("*QTPL*"));