There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
socket program==error in retrieving data


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
cmrhema's Avatar
Junior Member with 1 posts.
 
Join Date: Aug 2007
Experience: Intermediate
11-Aug-2007, 04:51 AM #1
socket program==error in retrieving data
Hello,



We are currently using a program where we recieve the details from the client. 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.NullReferenceException: Object reference not set to an instance of an object.

at System.Windows.Forms.ListBox.ItemArray.IndexOf(Object item, Int32 stateMask)

at System.Windows.Forms.ListBox.ObjectCollection.AddInternal(Object item)

at System.Windows.Forms.ListBox.ObjectCollection.Add(Object item)

at StepIIServer.Server.RunClient2() in E:\stepII\Server.cs:line 346

8/7/2007 8:19:26 PM Error :$<MSG.Info.ServerLogin>

$DeviceName=352022000365427

$Software=steppII_2.4.3_final

$Hardware=STEPPII-55

$LastValidPosition=$GPRMC,145245.573,A,2941.6635,N,07659.7630,E,0.00,2.34,0 70807,,

$IMEI=352022000365427

$PhoneNumber=

$LocalIP=117.96.20.147

$CmdVersion=2

$SUCCESS

$<end>

&IMEI=352022000365427,Distance=63936,

&GPRMC,145240.574,A,2941.6635,N,07659.7630,E,0.00,2.34,070807,,

<end>



and another error stating

ping

System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

at System.Net.Sockets.Socket.Receive(Byte[] buffer)

at StepIIServer.Server.RunClient2() in E:\stepII\Server.cs:line 288

8/7/2007 5:51:34 AM Error :&IMEI=352022000370849,Distance=1487,

&GPRMC,001830.515,A,2943.0151,N,07658.9818,E,0.00,8.79,070807,,

<end>



Will you please help



thanks

cmrhema
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:07 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.