webservice native allocation problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jun

    #1

    webservice native allocation problem

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

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

    pointed at this line

    unsigned char* ucMessageUTF8 = new unsigned char[ulMessageUTF8Le ngth+1];


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

    thanks in advance!
    -jun


  • Jun

    #2
    Re: webservice native allocation problem

    nevermind, solved

    "Jun" <j_core99@yahoo .com> wrote in message
    news:%23SbybHEY FHA.2288@TK2MSF TNGP14.phx.gbl. ..[color=blue]
    >i create a webservice and added my old .h and .cpp files.
    > it compiles fine but gives me a runtime error...
    >
    > System.NullRefe renceException: Object reference not set to an instance of
    > an object.
    > at new(UInt32 ) etc....
    >
    > pointed at this line
    >
    > unsigned char* ucMessageUTF8 = new unsigned char[ulMessageUTF8Le ngth+1];
    >
    >
    > not sure why but i had no problems running on WinForms.
    >
    > thanks in advance!
    > -jun
    >[/color]


    Comment

    Working...