Hello all,
Whenver I'm trying to show message, I'm getting error - 'Dispatcher processing has been suspended' and my application get hanged. As soon as I remove my messagebox, things work fine. Please tell me how to solve this strange problem.
Hello all,
Whenver I'm trying to show message, I'm getting error - 'Dispatcher processing has been suspended' and my application get hanged. As soon as I remove my messagebox, things work fine. Please tell me how to solve this strange problem.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Dec 14, 2016, 6:21 AM
Leelha,
Looks like you are trying to show messagebox from non-UI class or say from viewModel. Please use Dispatcher.BeginInvoke as shown below:
Shweta LodhaPosted Dec 14, 2016, 6:23 AM
leelhaPosted Dec 14, 2016, 6:22 AM