473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

webservice native allocation problem

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
Nov 17 '05 #1
1 859
Jun
nevermind, solved

"Jun" <j_******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: azerty | last post by:
Hello I develop an application which must call a WebService on a server (develop with ASP.NET framework) If I call this application from XP client station, no problem occurs BUT if i call...
0
by: Kristof Thys via .NET 247 | last post by:
Hello, I've been struggling for weeks with this problem, I hope I find some help here... To start, in our company, we have a large existing c++ project (native code, unmanaged c++) The...
7
by: Kristof Thys via .NET 247 | last post by:
Post a new message to microsoft.public.dotnet.languages.vc http://www.dotnet247.com/247reference/default.aspx Hello, I've been struggling for weeks with this problem, I hope I find some...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
5
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
0
by: Sathya | last post by:
Hi, I have a vb.net webservice which takes XMLDocument as a parameter and returns bool. Signature of the method is some thing like this AddXmlEmpDetails(xmlEmp as XMLDocument) as Boolean. I...
6
by: DaveOnSEN | last post by:
Every time I make any .NET framework based webservice consumer I have the same problem: The first call my application makes to consume a webservice takes about 15 seconds. Subsequent calls are...
19
by: Steven Blair | last post by:
Hi, I have webservice which holds a static variable. I send my first message into the webservice and the static variable gets a value. If I queried the webservice at a later time (say after 1...
1
by: =?Utf-8?B?YXVzdGlyb2I=?= | last post by:
Hi, Any help with this problem would be greatly apprecicated as it is driving me insane. I have an ASP.NET 2.0 Webservice running on Windows server 2003. The
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.