v77b: glfw: CPP_GC_MODE = 2 not work w/miniB3D

Monkey Forums/Monkey Bug Reports/v77b: glfw: CPP_GC_MODE = 2 not work w/miniB3D

AdamRedwoods(Posted 2013) [#1]
v76d and v77b.

#CPP_GC_MODE = 2
#CPP_GC_TRIGGER = 8


crashes with miniB3D/animation_test or firepaint3d test.
not sure why. works ok with other examples like bananas/mak/firepaint.

the reason i am testing this is that it also crashes my new implementation of wxMonkey using callbacks. i don't think the callback is in another thread.
any help would be appreciated.

EDIT:
so far, i see that gc_flush_free() is trying to free the same object twice?

UPDATE:
if i stick this in the while() loop in gc_flush_free, i can get it to work (sometimes):
		if (p==lastp) {
			printf( "aaarrgh\n" );fflush( stdout );
			gc_free_list.succ=0;
			gc_free_bytes=0;
			break;
		}
		lastp = p;