i am using realloc several times for the same pointer.
it does allocate memory 1-2 times and then throws an error debug assertion failed.
file: dbgheap.c
line : 609
expression : _CtrIsValidHeap Pointer(pUserDa ta)
at this line in code.
cp->class2q->enqptr = (qptr*)realloc( cp->class2q->enqptr,
sizeof(cir_q)*( cp->class2q->count + 1));
it does allocate memory 1-2 times and then throws an error debug assertion failed.
file: dbgheap.c
line : 609
expression : _CtrIsValidHeap Pointer(pUserDa ta)
at this line in code.
cp->class2q->enqptr = (qptr*)realloc( cp->class2q->enqptr,
sizeof(cir_q)*( cp->class2q->count + 1));
Comment