I have a TcpListener that gets started from a GUI button event
handler:
TcpListener listener;
listener = new TcpListener(IPAddress.Any, 1234);
listener.Start(backLog);
As soon as the third line runs, the app freezes, the CPU goes to 100%
on that CPU (Core Duo) and debugging can't break out of it. I can't
even stop the process with the Task Manager but have to reboot to get
it to stop.
Any ideas what's wrong? This is with Visual Studio 2005. I had .Net
3.0 and the newest Windows SDK installed, but just uninstalled them
and it's still a problem.
T 4 3498
"Thos" <th********@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
>I have a TcpListener that gets started from a GUI button event
handler:
TcpListener listener;
listener = new TcpListener(IPAddress.Any, 1234);
listener.Start(backLog);
As soon as the third line runs, the app freezes, the CPU goes to 100%
on that CPU (Core Duo) and debugging can't break out of it. I can't
even stop the process with the Task Manager but have to reboot to get
it to stop.
Any ideas what's wrong? This is with Visual Studio 2005. I had .Net
3.0 and the newest Windows SDK installed, but just uninstalled them
and it's still a problem.
T
"Thos" <th********@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
>I have a TcpListener that gets started from a GUI button event
handler:
TcpListener listener;
listener = new TcpListener(IPAddress.Any, 1234);
listener.Start(backLog);
As soon as the third line runs, the app freezes, the CPU goes to 100%
on that CPU (Core Duo) and debugging can't break out of it. I can't
even stop the process with the Task Manager but have to reboot to get
it to stop.
Any ideas what's wrong? This is with Visual Studio 2005. I had .Net
3.0 and the newest Windows SDK installed, but just uninstalled them
and it's still a problem.
T
it seems like a synchronous call ....... your thread is waiting ... thus not
dispatching the UI messages .... either use secondry thread for listening
....... or use asynchronous methods of socket ....
"Thos" <th********@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
>I have a TcpListener that gets started from a GUI button event
handler:
TcpListener listener;
listener = new TcpListener(IPAddress.Any, 1234);
listener.Start(backLog);
As soon as the third line runs, the app freezes, the CPU goes to 100%
on that CPU (Core Duo) and debugging can't break out of it. I can't
even stop the process with the Task Manager but have to reboot to get
it to stop.
Any ideas what's wrong? This is with Visual Studio 2005. I had .Net
3.0 and the newest Windows SDK installed, but just uninstalled them
and it's still a problem.
T
It runs fine when it is not run in debugging mode, and it also ran
fine in debugging in the past (I think before I installed .Net 3.0).
Any workarounds? I should have to do a tcplistener.start on a
background thread just to make the VS debugger happy.
T
On Feb 13, 3:15 am, "Mubashir Khan" <m...@yahoo.comwrote:
it seems like a synchronous call ....... your thread is waiting ... thus not
dispatching the UI messages .... either use secondry thread for listening
...... or use asynchronous methods of socket ...."Thos" <thos37n...@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
I have a TcpListener that gets started from a GUI button event
handler:
TcpListener listener;
listener = new TcpListener(IPAddress.Any, 1234);
listener.Start(backLog);
As soon as the third line runs, the app freezes, the CPU goes to 100%
on that CPU (Core Duo) and debugging can't break out of it. I can't
even stop the process with the Task Manager but have to reboot to get
it to stop.
Any ideas what's wrong? This is with Visual Studio 2005. I had .Net
3.0 and the newest Windows SDK installed, but just uninstalled them
and it's still a problem.
T
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Doug Wyatt |
last post by:
So I'll preface this with the fact that I'm a UNIX developer by training and
have just recently gotten in to C# development on Windows. I'm basically
running in to a problem whereby I suspect...
|
by: Rob White |
last post by:
OK, so I have a TcpListener that is waiting for sockets, this piece of code:
IPAddress localAddress = Dns.GetHostByName(Dns.GetHostName()).AddressList;
IPEndPoint localEP = new...
|
by: Coder |
last post by:
hi, i have a simple question; Suppose that followig code is a thread;
/***************************************************/
listener = new TcpListener( IP, PORT);
listener.Start();
...
|
by: Dave Coate |
last post by:
Hi,
I am working on a client-server app. I can get two applications to talk to
each other on the same machine using 127.0.0.1, but as soon as I try it
using a computer name or actual IP address...
|
by: Terry Olsen |
last post by:
Hoping someone can help me here. I've got this code written, and it works
fine for the first connection. But if I connect another client (while the
first is still connected), I get connected but...
|
by: Bjørn Eliasen |
last post by:
Hi,
I have an application running on all pc's in our company. Basically it is a TCPListener awaiting for sockets to connect and on connection performs the required tasks. The app works fine, but...
|
by: Charlie |
last post by:
Hi:
I'm creating a simple port listener. When I call start() method it returns
"AddressAlreadyInUse" error. He is my code...
Int32 port = 80;
IPAddress localAddr = IPAddress.Parse(...
|
by: Thos |
last post by:
When I debug a standard socket server app that has a tcplistener using
VS.NET 2005, the debugger deadlocks (uses 100% of one of my CPUs) when
the code runs the tcplistener.Start(). method. I am...
|
by: =?Utf-8?B?Sm9uIEphY29icw==?= |
last post by:
(Note: the TCP Client is on another machine, and attempts communication every
minute.)
Both apps use the same assembly
The service app starts thusly, creating the tcp object and starting the...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
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...
|
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)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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
| |