LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why TCP Wait on listener crashed in While loop?

I am creating server which comm over TCP IP ,in this server.vi I written TCP Listen func. outside a while loop and TCP Wait on Listen func.inside loop .time delay in loop is 1sec. Recived data saving part is also inside while loop.
If single Client application connects to this Server ,after some time this(server.vi) crash with giving an error as follows.
"The instruction at "0x00000000" referenced memory at "0x00000000".The memory could not "read".
click "ok" to terminate
click "cancel to" debug application.
* I am sending 3kb size of image file from client to server at 1 fr/sec.
Oper sys: - Win NT service pack 5 and 6.
Labview 5.1.1 and 6i also
All sugesstions are wellcome.

Bye
Vijay K.Ra
ichurkar
0 Kudos
Message 1 of 2
(2,454 Views)
Aliance Member wrote:

> I am creating server which comm over TCP IP ,in this server.vi I
> written TCP Listen func. outside a while loop and TCP Wait on Listen
> func.inside loop .time delay in loop is 1sec. Recived data saving part
> is also inside while loop.
> If single Client application connects to this Server ,after some time
> this(server.vi) crash with giving an error as follows.
> "The instruction at "0x00000000" referenced memory at
> "0x00000000".The memory could not "read".
> click "ok" to terminate
> click "cancel to" debug application.
> * I am sending 3kb size of image file from client to server at 1
> fr/sec.
> Oper sys: - Win NT service pack 5 and 6.
> Labview 5.1.1 and 6i also
> All sugesstions are wellcome.
>
> Bye
> Vijay K.Raichurka
r

I think that you should use Create Listener and wait on listener in a
separate vi's (server/client), because these two are complementary pair.
Of course you can use these two in a separate loops and with different
connection references.
--
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru
Message 2 of 2
(2,454 Views)