EldoS | Feel safer!

Software components for data protection, secure storage and transfer

XMLBlackbox. Is this bug?

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
Posted: 01/10/2011 11:52:27
by Ken Ivanov (EldoS Corp.)

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:

This should take the AV away.



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