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"); } }
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..
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
Post a Comment