473,668 Members | 2,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error in retrieving datas from client

375 Contributor
Hello,

We are currently using a program where we recieve the details from the client. Developed in C#.It is recieved through sockets.
It is working fine. i.e. When we start the program afresh we do get details properly. We recieve the data as strings and we store in a list box.But after two or three days we have an error stating as below


System.NullRefe renceException: Object reference not set to an instance of an object.
at System.Windows. Forms.ListBox.I temArray.IndexO f(Object item, Int32 stateMask)
at System.Windows. Forms.ListBox.O bjectCollection .AddInternal(Ob ject item)
at System.Windows. Forms.ListBox.O bjectCollection .Add(Object item)
at StepIIServer.Se rver.RunClient2 () in E:\stepII\Serve r.cs:line 346
8/7/2007 8:19:26 PM Error :$<MSG.Info.Ser verLogin>
$DeviceName=352 022000365427
$Software=stepp II_2.4.3_final
$Hardware=STEPP II-55
$LastValidPosit ion=$GPRMC,1452 45.573,A,2941.6 635,N,07659.763 0,E,0.00,2.34,0 70807,,
$IMEI=352022000 365427
$PhoneNumber=
$LocalIP=117.96 .20.147
$CmdVersion=2
$SUCCESS
$<end>
&IMEI=352022000 365427,Distance =63936,
&GPRMC,145240.5 74,A,2941.6635, N,07659.7630,E, 0.00,2.34,07080 7,,
<end>

and another error stating
ping
System.Net.Sock ets.SocketExcep tion: An existing connection was forcibly closed by the remote host
at System.Net.Sock ets.Socket.Rece ive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sock ets.Socket.Rece ive(Byte[] buffer)
at StepIIServer.Se rver.RunClient2 () in E:\stepII\Serve r.cs:line 288
8/7/2007 5:51:34 AM Error :&IMEI=35202200 0370849,Distanc e=1487,
&GPRMC,001830.5 15,A,2943.0151, N,07658.9818,E, 0.00,8.79,07080 7,,
<end>

Will you please help

thanks
Hema
Aug 11 '07 #1
0 1485

Sign in to post your reply or Sign up for a free account.

Similar topics

9
2223
by: Bob Bedford | last post by:
Where to find a comprehensive document on how take datas from XML and put them in a Mysql Database. I've many sites sending us XML files. We have to parse datas and save those datas on Mysql. The problem is that we have many different file format (each company sends us it's own XML structure). How to provide a simple way to get those datas in Mysql, without having to create a new PHP script for every new site's XML ?
1
4986
by: Laszlo | last post by:
Hi all, As a novice I installed PostgreSQL 7.2.1 on Win32 and works, Borland C++Builder Enterprise Suite 5.0 (build 12.34) what works too. I decided to combine these two programs and develop a simple GUI app to display datas queried from PostgreSQL. I did make the following changes in the project's settings: Project->Properties->Directories->Include path += C:\Program
0
1265
by: André Betz | last post by:
Hi, I've established a TCP-Socket Connection and now I want to receive datas. So I called BeginReceive where I set the receiving buffer and length. Now in the asynchronous CallBack-Function I call EndReceive and get the length of rceived datas. After receiving datas I call the Beginreceive-Function again. So my question is now what is if the send datas is greater than the receiving buffer? Ok, I know, I will get it in the next...
1
1178
by: prasathas | last post by:
i am trying to display my datas in the table format that i am fetching from database... while running the progrom it doesnt shows any error.. but in client side scripting the coding shows error as the element table is missing the closing tag or overlap the element header template... <%@ Page language="c#" Codebehind="data.aspx.cs" AutoEventWireup="false" Inherits="WebApplication2.data" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0...
1
1558
by: napolpie | last post by:
----Messaggio originale---- Da: napolpie@tin.it Data: 3-mag-2007 10.02 A: <python-list@python.org> Ogg: problem with meteo datas Hello, I'm Peter and I'm new in python codying and I'm using parsying to
0
2040
by: napolpie | last post by:
DISCUSSION IN USER nappie writes: Hello, I'm Peter and I'm new in python codying and I'm using parsying to extract data from one meteo Arpege file. This file is long file and it's composed by word and number arguments like this: GRILLE EURAT5 Coin Nord-Ouest : 46.50/ 0.50 Coin Sud-E Hello, I'm Peter and I'm new in python codying and I'm using parsying to extract data from one meteo Arpege file.
1
1817
by: rishiyo | last post by:
Good ones!! I want to retrieve and add datas with excel. I've tried one by adding two textboxes and two command buttons. THE code is: 'do declare these variables you need to add a reference'to the microsoft excel 'xx' object library. 'you need two text boxes and two command buttons'on the form, an excel file in c:\book1.xls Dim xl As New Excel.Application Dim xlsheet As Excel.Worksheet Dim xlwbook As Excel.Workbook Private Sub...
0
1251
by: imagetvr | last post by:
Hello I am using windows XP I need a small programme in Visual basic 6 with Access 2000 I have two tables for example one table named student other table named section In student table rno is primary key. In section table Rollno is primary key
0
8381
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8583
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8656
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7401
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5681
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2791
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.