Hi Rooters,
I have been running into TSocket exceptions in my compiled code. The same problems sometimes happen in the tutorials\net\pserv.c example. Running pserv.c and pclient.c under XP with version 5.18 (starting in the tutorials\net directory) I often get the following results:
root [0] .x pserv.c
Receive 100 buffers of 500000 bytes over 5 parallel sockets…
SysError in TWinNTSystem::WinNTRecv: recv (No such file ordirectory)
Error in TWinNTSystem::RecvRaw: cannot receive buffer
error receiving
50000000 bytes received in 3.687000 seconds
12.75 MB/s
root [1]
root [0] .x pclient.c
Error: C++ exception caught C:\root\tutorials\net\pclient.c(24)
Warning in TWinNTSystem::Run: handle uncaugth exception, terminating
C:\root\tutorials\net>
Here are two other somewhat strange (cint?) details:
- Pressing the cursor up button in the second window gives me the last root line typed in the first window.
- The client exception may take up to a minute to occur
- I have seen the uncaughth (sic) exception on the server side as well.
My compiled code is based on hserv2 but behaves similarly. Are there things I can do in my compiled code (running from VC++) to prevent this?
Cheers,
Steve Alam