EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Memory leak on font adding

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#32931
Posted: 04/03/2015 03:49:41
by Piotr Szychowski (Priority Standard support level)
Joined: 04/03/2015
Posts: 3

Hello,

I have some problems with including external font to signing PDF.
I've got memory leak (yeah i know that is the key sentence). It's on code pasted below:|

sig->WidgetProps->AddFont(_font.get());
sig->WidgetProps->AddFont(_CIDFont.get());
sig->WidgetProps->AddFontObject(_systemInfo.get());
sig->WidgetProps->AddFontObject(_fontDescriptor.get());

where sign is a pointer to TElPDFSignature,
std::unique_ptr<TElPDFCompositeFont> _font;
std::unique_ptr<TElPDFCIDFont> _CIDFont;
std::unique_ptr<TElPDFCIDSystemInfo> _systemInfo;
std::unique_ptr<TElPDFCIDFontDescriptor> _fontDescriptor;


I already try to :
use CleanupRegisteredGlobalObjects() still leaking,
Deleting objects by delete operator.

The leak is observed on executing close(true) method on TElPDFDocument object

What can I do now ?


Best regards
Software developer from Invicta
#32932
Posted: 04/03/2015 04:07:28
by Dmytro Bogatskyy (EldoS Corp.)

I welcome you to continue the conversation in the Helpdesk ( https://www.eldos.com/helpdesk/ticket_...p?ID=27342 ).

Helpdesk is our easy-to-use ticketing system that allows communicating and exchanging sample data with our support personnel privately. You will also get e-mail notifications about updates of your support ticket.

Reply

Statistics

Topic viewed 482 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!