WPF: Long-running task running in a new thread fails to respond to UI’s stop signal
This is a signal acquisition program where getDataEx
is used to collect signals. When the start button is clicked in WPF, getDataEx
function runs in a background thread, and the collected data is displayed correctly on the UI. However, clicking the stop button
has no effect.