Questions tagged as 'thread'

0
answers

Multiple client chat using Threads and Sockets

The code posted here represents a small chat between client and server. Like I said, I'm not familiar with threads. The teacher told us from this code to create a multi-client chat, where clients send and receive messages and the only functio...
asked by 24.08.2018 / 14:02
0
answers

Make multiple connections via Bluetooth

I need my Android application to connect to multiple devices and exchange information with them. To accomplish this I am trying to create a Thread to which it receives the connection of a device, save its mac number, disconnect and open the c...
asked by 22.08.2018 / 10:12
0
answers

How to run Thread with Function overload?

In the code below I have a problem trying to run a thread using function overload. It's like std::thread does not understand overhead. Noinstanceoftheconstructor"std :: thread :: thread" matches the list of arguments. Does anyone k...
asked by 04.08.2018 / 04:55
0
answers

Android - Keep Running Service

I have a system that uses Services to run in the background. It works fine while the app is open or closed, but in the list of recent apps. When I remove this list, I get the log I/ActivityManager: Killing 4419:com.cybermickey2077/u0a34 (adj...
asked by 15.07.2018 / 22:32
1
answer

Modify visual element by another thread

I want to define a Thread in a RichTextBox but I get an error saying    Can not make calls from another thread than the same TextBox I've heard that it's possible to use the Control.Invoke option, so I was very much in doubt at th...
asked by 18.10.2015 / 00:46
1
answer

I want to use 2 threads inside the foreach C #

I do not have much experience in C #. But I'm trying to understand the code of a program I have here. Here use the following code: foreach(var item in _main.entrada) { .... } I want to include the _main.said (along with the entry) in the...
asked by 18.05.2018 / 01:23
2
answers

What is a Thread? How does it work?

I was confused about what a thread is and what it represents. I found the following definition for it:    Thread is a small program that works as a subsystem, being   a way for a process to self-divide into two or more tasks. It's th...
asked by 28.10.2015 / 23:20
0
answers

Pause the program while executing a C #

I'm having a question about using threads, I want the program to stop responding at some point, and only come back when I determine ... Example: System.Threading.Thread.Pausa(); // Executa código System.Threading.Thread.VoltaDnv(); How...
asked by 18.05.2018 / 22:04
0
answers

Use the WebBrowser in an ActionResult MVC

Hello, I'm using System.Windows.Forms.WebBrowser to fetch an HTML form because I need the value of some inputs of this form: InmyActionResultIcalltheExecuteWebBrowsermethod: TheproblemisthatsometimesallforminputsareloadedandhaveinputCollec...
asked by 11.05.2018 / 02:18
0
answers

Second thread only when Windows is closed

I have following code private void AbrirConexao(string strConexao) { try { conexao = new NpgsqlConnection(strConexao); conexao.Open(); } catch (Exception) { ReconectarDB(null, strConexao); } } p...
asked by 13.05.2018 / 00:50