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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Dec 14, 2016, 1:21 AM EST
Leelha,
Looks like you are trying to show messagebox from non-UI class or say from viewModel. Please use Dispatcher.BeginInvoke as shown below:
leelha75 reputationPosted Dec 14, 2016, 1:22 AM EST
Shweta LodhaRank #31 · 39.8K reputationPosted Dec 14, 2016, 1:23 AM EST