» An ultimate catalog of computer data
Forum posts for conhost.exe
C# Multiple processes conhost.exe while using UDP
This is my code:
UdpClient Udp = new UdpClient();
IPAddress IP = IPAddress.Parse(IPa);
Byte[] Bytet = new Byte[] { };
Udp.Connect(IPa, Port);
Bytet = Encoding.ASCII.GetBytes('??????getplayer');
for(int i = 0; i <k; i++)
{
if (run)
{
Udp.Send(Bytet, Bytet.Length - 1);
if (i == k - 1)
{
i = 0;
}
}
else
{
Udp.Close();
}
Everytime i run this code, i have additional conhost.exe + cmd.exe on process list. How should i disconnect so conhost.exe will terminate itself?
I tried with kill process by name but it doesn't work well and I have to fix it somehow so i won't end up with 100 x conhost.exe + 100 x cmd.exe at the end. (it stays even if i close my app).
View complete forum thread with replies
Other posts related to conhost.exe
See Related Forum Messages: Follow the Links Below to View Complete Thread
Why is conhost.exe being launched?
Python on windows - conhost.exe CPU usage
C# Multiple processes conhost.exe while using UDP
Rails server running in command prompt causing conhost.exe to crash
“plink.exe” hangs on Windows Server 2008 R2 , creates process “conhost.exe”
How to count number of strings in a list
Conhost process stays opens
How would I redirect console output for all applications a application I launch using a Process
Java - Get specific word from string [closed]
Get PID of conhost.exe associated to my console process