webservice native allocation problem

  • Thread starter Thread starter Jun
  • Start date Start date
J

Jun

i create a webservice and added my old .h and .cpp files.
it compiles fine but gives me a runtime error...

System.NullReferenceException: Object reference not set to an instance of an
object.
at new(UInt32 ) etc....

pointed at this line

unsigned char* ucMessageUTF8 = new unsigned char[ulMessageUTF8Length+1];


not sure why but i had no problems running on WinForms.

thanks in advance!
-jun
 
Back
Top