ArthurHub / ArthurHub/HTML-Renderer
using Dictionary for caching causes multi-thread issues.
オープン
bug
PDF
- 主要言語
- C#
- スター
- 1.4k
- フォーク
- 550
- 平均マージ
- 14日 9時間
- マージ済み PR(30日)
- 1
説明
In RAdapter and FontsHandler, Dictionaries are used to cached brushes, pens and fonts.
Single instance pattern is used by PdfSharpAdapter, and this instance is used by all HtmlContainers generated during system running time.
It causes problem when using this single instance in a multi-thread environment. [Refer Here](http://stackoverflow.com/questions/1920864/when-does-a-dictionary-throw-an-indexoutofrangeexception-on-add-or-containskey)
Please replace Dictionary with ConcurrentDictionary.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。