Boost logo

Boost Users :

From: Christian Henning (chhenning_at_[hidden])
Date: 2006-10-19 10:21:11


Hi Christopher, attached to this email is a server and a client
program. They are console program but they are using MFC's new
operator. It's assumed that boost is in c:\boost and the libs are in
c:\boost\stage\lib . If that is not correct on your machine you need
to change some settings.

It's OK to run them just a few seconds. MFC will report quite a few
memory leaks. Also Purify is reporting the leaks.

Let me know when you are having any issues.

Thanks,
Christian

On 10/18/06, Christopher Kohlhoff <chris_at_[hidden]> wrote:
> Hi Christian,
>
> Christian Henning writes:
> > Hi there, I have been spending some hour now on trackign down
> > memory issues that are reported from MFC.
> >
> > In my client program I'm calling io_service::post( ... ) quite
> > often and is seems to me that it allocates memory that is
> > never been deallocated afterwards. Every call of post( ... )
> > will result in one memory leak.
> >
> > The allocation takes place in the file
> > handler_alloc_helpers.hpp in line 39. Setting a breakpoint
> > here shows that every post(...) call allocates some memory.
> > The deallocation which is right below in the file is never
> > called.
>
> That's very odd.
>
> > Is this an known issue?
>
> Presumably this is a side effect of using MFC, because there is
> no leak in a standalone program. I don't use MFC, but do have
> access to it, so if you can send me a VC7.1 or VC8 solution that
> reproduces the issue I can take a quick look at it next week.
>
> Cheers,
> Chris
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>





Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net