Hi there,

Currently I'm working on integration sipXtapi lib in IM client. Last week
I've finished my code realization, and begun to test application.
I found that there were some unknown crash in sipXtapi.dll when you sending
too much messages in a short time.
After some time I'm checked the problem. mClassType - member of the class
HttpBody doesn't copy in the copy constructor.
So thats why in HttpBody::copyBody program is crashed when trying to casting
type, because mClassType is not properly initialized.
This bug is only reproduced in Release configuration under Win32 Platform,
when you start application not under VS IDE.

----------------------------------------------------------------
HttpBody.cpp
----------------------------------------------------------------

// Copy constructor
HttpBody::HttpBody(const HttpBody& rHttpBody) :
  UtlString(rHttpBody),
  bodyLength(rHttpBody.bodyLength),
  mBody(rHttpBody.mBody),
  mMultipartBoundary(rHttpBody.mMultipartBoundary )
{
   //JH+++24.04.2007 mClassType value is not copied
   mClassType = rHttpBody.getClassType();

  for (int partIndex = 0; partIndex < MAX_HTTP_BODY_PARTS; partIndex++)
  {
     mpBodyParts[partIndex] =
        rHttpBody.mpBodyParts[partIndex] ?
        new MimeBodyPart(*(rHttpBody.mpBodyParts[partIndex])) :
        NULL;
  }
}

Best regards,
Jhorsh.
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to