X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fsession.cpp;h=7db96ff0abf568d0199d948afc7853bbbf499b9c;hb=926934b87183a33306c030ed0a01dfea630fa36d;hp=c0bcd670de26d0af866bf9cb87705ad506d5a57e;hpb=f4ab4b5c657e5613caba82feaa81a8a400e4f331;p=pulseview.git diff --git a/pv/session.cpp b/pv/session.cpp index c0bcd67..7db96ff 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -982,6 +982,10 @@ void Session::sample_thread_proc(function error_handler) error_handler(e.what()); set_capture_state(Stopped); return; + } catch (QString& e) { + error_handler(e); + set_capture_state(Stopped); + return; } set_capture_state(Stopped); @@ -1163,6 +1167,9 @@ void Session::feed_in_logic(shared_ptr logic) return; } + if (logic->unit_size() > 8) + throw QString(tr("Can't handle more than 64 logic channels.")); + if (!cur_samplerate_) try { cur_samplerate_ = device_->read_config(ConfigKey::SAMPLERATE);