I am having some problems with the following code...
I believe it should pass through without any major issues. Am I doing enough checking for NULL pointers in here.
Within the Netware environment where this is executed, I had this chunk of code error on 2 different servers whilst processing some data.
Code:
if ( pItem -> pItemLevel2 == NULL )
{
sprintf ( MiscBuff, "Internal error code 9007 line %i" , __LINE__ ) ;
Exception ( EX_CRITICAL, 7, FBS_INTDBASE, MiscBuff ) ;
break ;
}
for ( pLoop = pItem->pItemLevel2->pItemLevel3 ;
pLoop != NULL ;
pLoop = pLoop -> pNext )
if ( pLoop -> cStatus != CHECK )
break ;
Does anyone have any ideas for why this might fail - am I just unlucky?
Cheers in advance.
DS