EldoS | Feel safer!

Software components for data protection, secure storage and transfer

XMLBlackbox. Is this bug?

#15450
Posted: 01/10/2011 11:52:27
by Ken Ivanov (Team)

As a matter of fact, you should release the stream object *after* releasing the codec object (as the latter might need to flush some cached data to the stream in the destructor). Please re-write the finally section of your SaveWithoutBom() method as shown below:
Code
  finally
    FreeAndNil(Codec);
    FreeAndNil(F);
  end;


This should take the AV away.

Reply

Statistics

Topic viewed 3847 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!