[Gc] Re: object collected while still in use - test case
christopher.ian.moore at gmail.com
Thu Oct 18 00:57:31 PDT 2007
On 10/18/07, Chris Moore <christopher.ian.moore at gmail.com> wrote:
> I recently started trying to use libgc, and pretty quickly came up
> against a problem where objects are being freed while still in use.
It seems that I can get the behaviour I want by using gc_allocator.h:
typedef std::vector<Handle,traceable_allocator<Handle> > Canvas;
But that means I'm going to have to edit lots of source files. Is
there an easier way?
More information about the Gc