You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in case of using of SynchronizedConverter PdfTools is as singleton and contains _Delegates member that is never cleared and list just fills with delegates on each conversion
_Delegates.Clear(); in DestroyConverter should remove this issue
The text was updated successfully, but these errors were encountered:
//used to maintain a reference to delegates to prevent them being garbage collected...
private readonly ConcurrentDictionary<IntPtr, List<object>> delegates = new ConcurrentDictionary<IntPtr, List<object>>();
and use
public void DestroyConverter(IntPtr converter)
{
this.delegates.TryRemove(converter, out var l);
l?.Clear();
this.module.wkhtmltopdf_destroy_converter(converter);
}
in case of using of SynchronizedConverter PdfTools is as singleton and contains _Delegates member that is never cleared and list just fills with delegates on each conversion
_Delegates.Clear(); in DestroyConverter should remove this issue
The text was updated successfully, but these errors were encountered: