< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] wince - testparsebuffer creating crash


Hello All

 

I am trying to run following test (testparsebuffer.cxx) in the wince. then it create crash when get eof.

 

What can I do for this bug ?

 

{

      std::cerr << "!! Test position" << std::endl;

      char buf[] = "Here is a buffer with some stuff.";

      ParseBuffer pb(buf, strlen(buf));

     

      pb.skipToChars("buff");

      *pb.position();

 

      pb.skipToEnd();     

      do

      {

         try

         {

            *pb.position();

            assert(false);

         }

         catch (BaseException& e)

         {

            cerr<< "this is test";

            break;

         }

      } while (false);

   }

 

DEBUG | testparsebuffer | RESIP | 2803300270 | baseexception.cxx:17 | BaseException at  c:\resiprocate\os\parsebuffer.cxx:935 dereferenced ParseBuffer eof

 

Regards,

Shailesh