Boost logo

Boost :

From: Juan (jfo_at_[hidden])
Date: 2007-11-07 13:33:44

Hello, I have a problem with the asio library. I work with Visual Studio
8 and I have a win32 dll project using asio to perform the tcp
communication. So far so good, but the problem arises when I use that
dll. Asio initializes some variables when included in a project and
those variable leave memory leaks when are inside a dll.

Error message:

Detected memory leaks!
Dumping objects ->
{118} normal block at 0x004561D0, 16 bytes long.
 Data: < aE > 00 9C 0A 10 02 00 00 00 01 00 00 00 90 61 45
{117} normal block at 0x00456190, 4 bytes long.
 Data: < > 00 00 00 00
 I tracked the memory address and they are:
 boost::asio::detail::winsock_init::ref_ (4 bytes)
 boost::detail::shared_count::pi_ (16 bytes)
 Anybody knows why is this happening and how to avoid it?
Thanks and Regards,
Juan Fernández

Boost list run by bdawes at, gregod at, cpdaniel at, john at