HTML-Renderer icon indicating copy to clipboard operation
HTML-Renderer copied to clipboard

using Dictionary for caching causes multi-thread issues.

Open hippasus opened this issue 8 years ago • 1 comments

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

Please replace Dictionary with ConcurrentDictionary.

hippasus avatar Feb 13 '17 02:02 hippasus

I can assure this bug. This happened for us and had to spent hours to figure out the issue.

aajahid avatar Mar 25 '19 14:03 aajahid