c# - System.AccessViolationException when calling Print() on a FlowDocumentScrollViewer -


we have wpf application targeting .net framework 4.

here short explanation actions cause exception:

1) application receive string xaml content db.

2) content converted flowdocument via converter (xamlreader.parse method).

3) document presented user in flowdocumentscrollviewer.

4) user prints document calls print() method on flowdocumentscrollviewer object.

5) application crashes.

it's important notice exception occurs on computers inside specific organization. never had exception elsewhere.

we tried replace direct call print() other implementations (e.g. calling the printdialog manually) , still no luck.

the thing sort of worked (and not permanently) install windows features under .net 3.5.1 on specific computer.

here summary of trace:

framework: v4.0.30319 system.accessviolationexception  in- ms.internal.printing.unsafenativemethods.printdlgex(intptr)  in- ms.internal.printing.win32printdialog.showdialog()  in- system.windows.controls.printdialog.showdialog()  


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -