webservice native allocation problem

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top