From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2003-06-03 12:47:22
Finally managed to track it down, and it was just a free() call too many. This did the trick: static unsigned char chunks = 0; void* __fastcall__ debugmalloc(size_t size) { gotoxy(35, 24); cprintf("c %3d", ++chunks); return(malloc(size)); } void __fastcall__ debugfree(void* block) { gotoxy(35, 24); cprintf("c %3d", --chunks); free(block); } together with two #define:s. *sigh* -- ___ . . . . . + . . o _|___|_ + . + . + . Per Olofsson, arkadspelare o-o . . . o + MagerValp_at_cling.gu.se - + + . http://www.cling.gu.se/~cl3polof/ ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-06-03 12:49:14 CEST