#160 ptlib.dll crash on multi-proccessor computer

PWLib (63)
jim zhang

when i use openh323 to decode h323 packet, if i run all decode threads on the first processor, it's ok for run a week long. but if it use SetThreadAffinityMask to put each decode thread on different processor, it break after several minute with reporter "access violation(0x0000005), ". and the break point is in ptlib.dll each time.

BOOL PAbstractArray::SetSize(PINDEX newSize) { PINDEX newsizebytes = elementSizenewSize; PINDEX oldsizebytes = elementSizeGetSize();

char * newArray;

if (!IsUnique()) {

if (newsizebytes == 0) newArray = NULL; else { if ((newArray = (char *)malloc(newsizebytes)) == NULL) return FALSE;

if (theArray != NULL) memcpy(newArray, theArray, PMIN(oldsizebytes, newsizebytes));// crash at this position

here is my code : ProcessH225Data( UCHAR *pData, int size) { PPER_Stream strm( pData, size ); H225_H323_UserInformation m_h225; // crash at this position

BOOL ret = m_h225.Decode( strm );


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks