[Gc] Program broken

Hugh up2dream at gmail.com
Wed Sep 23 03:13:37 PDT 2009


Hi,

My program often broke on line marked with "*". The error is First-chance 
exception at 0x00000000 in HostApp.exe: 0xC0000005: access violation read 
0x00000000 .

Any help will be priciate.

inline gc_cleanup::gc_cleanup() {
    GC_finalization_proc oldProc;
    void* oldData;
    void* base = GC_base( (void *) this );
    if (0 != base)  {
      // Don't call the debug version, since this is a real base address.
********      GC_register_finalizer_ignore_self( *****
        base, (GC_finalization_proc)cleanup, (void*) ((char*) this - (char*) 
base), 
        &oldProc, &oldData );
      if (0 != oldProc) {
        GC_register_finalizer_ignore_self( base, oldProc, oldData, 0, 0 );}}}




More information about the Gc mailing list