PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Dec 12, 2017 4:46 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jul 01, 2016 9:49 am 
Offline

Joined: Fri Mar 20, 2015 1:00 pm
Posts: 13
With 1.50 beta3b I sometimes get an System.ArgumentException: An item with the same key has already been added.
Unfortunately I cannot reproduce it, it just happens randomly in production from time to time.

Here's the stacktrace hopefully you can figure something out of this small peace of information:

Code:
   System.ArgumentException: An item with the same key has already been added.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at PdfSharp.Fonts.OpenType.GlyphTypefaceCache.AddGlyphTypeface(XGlyphTypeface glyphTypeface)
   at PdfSharp.Drawing.XGlyphTypeface.GetOrCreateFrom(String familyName, FontResolvingOptions fontResolvingOptions)
   at PdfSharp.Drawing.XFont.Initialize()
   at PdfSharp.Drawing.XFont..ctor(String familyName, Double emSize, XFontStyle style)


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 05, 2016 7:33 am 
Offline
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 308
Location: CCAA
Do you use multiple threads?

Could be a duplicate of this thread:
viewtopic.php?p=9816#p9816

If so, it should be fixed with the next release.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 01, 2016 11:53 am 
Offline

Joined: Fri Mar 20, 2015 1:00 pm
Posts: 13
TH-Soft wrote:
Do you use multiple threads?

Could be a duplicate of this thread:
viewtopic.php?p=9816#p9816

If so, it should be fixed with the next release.


It's a web application so I suppose it's using multiple threads, yes. Good to know you have a fix. Do you have any estimation when the next release will be out?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group