nobody wrote on Wednesday, September 14, 2005:
pxPreviousBlock = &xStart;
pxBlock = xStart.pxNextFreeBlock;
while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock ) )
{
pxPreviousBlock = pxBlock;
pxBlock = pxBlock->pxNextFreeBlock;
}
Richard,
I’m still having this looping problem within heap2 in the above code. It does appear to occur randomly. I’ve tried everything to understand this, except for beating my head against a wall
If I step through the above code, the value of pxBlock is always the same. IE the linked list seems to be linked to the same cell.
My guess is that there is a critical area somewhere which is not protected and an interrupt has sneaked it… Any ideas.
Thanks
Phil