managed c++ webservice problem

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

    managed c++ webservice 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: managed c++ webservice problem

    nevermind solved

    "Jun" <j_core99@yahoo .com> wrote in message
    news:uSMkLoFYFH A.1148@tk2msftn gp13.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...