c# - Error Loading Report "Dispacher processing has been suspended" -


i above error when try open report.

private void btnloadcustremitt_click(object sender, routedeventargs e) {     try     {          customerremittreportwin cusremrep = new customerremittreportwin();         cusremrep.show();     }     catch (exception ex)     { this.myerrormessage(ex);      messagebox.show("this part executed");     }  } 

enter image description here

when pressed on load message appears, , after message shows surety did put messagebox on right code.

on vs 2012 working fine. moved vs 2013, windows 10, getting issue??

=-=-=-=--=-=

there simplar problem posted, not sure how fix problem solution..

https://stackoverflow.com/questions/23452864/wpf-dispatcher-processing-has-been-suspended-but-messages-are-still-being-pro#=

i think might need wrap ui relevant code in dispatcher.begininvoke call defer ui operations when dispatcher resumes processing.

private void btnloadcustremitt_click(object sender, routedeventargs e) {     try     {         dispatcher.begininvoke(new action(() =>          {             customerremittreportwin cusremrep = new customerremittreportwin();             cusremrep.show();         };     }     catch (exception ex)     { this.myerrormessage(ex);      messagebox.show("this part executed");     } } 

i haven't tested this...


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -