EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sign XML. Memory leak

Posted: 01/23/2015 03:05:16
by Sergey Sergey (Basic support level)
Joined: 01/23/2015
Posts: 3


I try to sign big XML file(test.fp3) which created by FastReport

When I try execute Signer.UpdateReferencesDigest() I have got "Out of Memory"

In task manager I see that memory used by my Application is increased to 1600Mb and then "Out of Memory"

When size of this XML file lower the 28 Mb it's ok;

Delphi XE4 x32, Windows 8.1 x64

Posted: 01/23/2015 03:11:21
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

Please try to use delay load mode for TElXMLDOMDocument.LoadFromStream method. See https://www.eldos.com/documentation/sb...tream.html for details.
Posted: 01/23/2015 03:43:23
by Sergey Sergey (Basic support level)
Joined: 01/23/2015
Posts: 3

The error still remains

I can send test project with test xml file to email
Posted: 01/23/2015 03:44:59
by Sergey Sergey (Basic support level)
Joined: 01/23/2015
Posts: 3

In zip archive 375655b
Posted: 01/23/2015 03:48:16
by Vsevolod Ievgiienko (Team)

I've created a Helpdesk ticket for you. Please upload the sample project and XML file as decribed there.
Posted: 01/23/2015 04:24:31
by Eugene Mayevski (Team)

There's no leak here. If XML file is complex, out of memory error will happen. There's no particular fixed size limit set and the error can happen on any file if it's large enough or complex enough to consume all memory available to the process (which can be less than the amount of memory available in the system).

The only solution for such problem is to use stream-based XML processors for such large files. SecureBlackbox doesn't have such technology and we have no plans for it.

Sincerely yours
Eugene Mayevski



Topic viewed 904 times

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


Back to top

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

Got it!