[Gc] object collected while still in use - test case
bruce at hoult.org
Thu Oct 18 02:13:39 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.
> I managed to make a relatively small test case:
> http://dooglus.rincevent.net/random/gc.cpp (1177 bytes)
Fairly obviously, the STL std::vector class is using malloc() to
allocate its memory. You need to find a way to make it use GC memory
so that it is traced for pointers.
More information about the Gc