Hi,

 

Does anyone know how we can free memory that is dynamically allocated by boost::archive::text_iarchive when deserializing an archive?

 

We have tried using ‘delete’ and free() on the pointer when we finish with it, but it results in a crash.

 

How does Boost dynamically allocate memory, ‘new’, ‘malloc’, or other?

 

We tried a shared_ptr, but were getting compile errors related to the include files, and have not gone back to track that down. So if there is a simple way to free the memory that would be best for our application.

 

Thanks,

Adlai Shawareb

Vytronus, Inc.