Questions tagged as 'thread'

1
answer

Performing a specific task on a specific date and time

I'm trying to develop a small system that sends an email every Tuesday at 08:00 in the morning. But I'm a bit confused, I can already send the email and check if it's Tuesday, but I do not know if it's correct. The system keeps running,...
asked by 08.09.2015 / 14:37
1
answer

Problem adding image inside a Thread

I have this following class call inside the main is working perfectly single problem is for me to setar the image I received in the msg of the following error    E / AndroidRuntime: FATAL EXCEPTION: Thread-201       android.view.ViewRootImpl...
asked by 17.12.2014 / 17:54
1
answer

Android - Method with return using thread

Hello everyone, I'm developing an android application that uses the volley library (google) to perform my http requests. I have a method that returns a Boolean and depends on the return of the request, then that is the badness, the method return...
asked by 15.01.2015 / 18:58
1
answer

Thread hanging

My system has a method that puts each triggered event into a thread , save, edit, search, everything goes to a thread . backgroundWorker.DoWork += acaoProcessamento; backgroundWorker.RunWorkerCompleted += (s, a) => { this.oc...
asked by 29.09.2014 / 21:54
1
answer

Resolve the error android.os.NetworkOnMainThreadException in an android application that works as client to receive images of a server [duplicated]

I'm trying to make an Android application that fetches an image from the computer. The server-side code (computer) is already implemented and operational. Using UDP, I ask the server to send me an image and it responds with that same image. Bu...
asked by 21.01.2015 / 17:35
1
answer

How to add a new Runnable to an ExecutorService?

This is the first time I work with threads ...    The method below runs every 15 seconds by EJB.    I would like if in case there is an SMS list in the database it would add to a new SMS trigger thread But you are returning the following erro...
asked by 15.10.2014 / 15:44
1
answer

Code to run in background in Google App Engine

I'm doing a "site" in GAE Java version to serve as a notifier when a source with results that I'm expecting goes online. It is supposed to check the link in question every 24 hours. I already have everything working, but as is normal, the site i...
asked by 04.02.2014 / 14:24
1
answer

C # MySQL connection thread-safe

I have a server that receives hundreds of asynchronous connections and needs to implement MySQL access to different threads. Actually, as I use the Async Socket Begin / End standard of .Net, there is a thread pool, so it is not 1 thread for each...
asked by 01.07.2014 / 21:33
1
answer

How to return data from a thread to the layout at runtime on flutter

Is there a way to make a thread using the flutter and return the result of the processing on the screen? I have the following code. In the main class _MyHomePageState I have the layout and function _processo () . The idea is to start the...
asked by 19.12.2018 / 13:42
0
answers

How to add Sender parameter in thread onterminate?

I have a thread that executes an action and onterminate executes a secondary procedure. It works like this: procedure qualquer; var Thread: TThread; begin Thread.CreateAnonymousThread( procedure() begin excecuta ação end;...
asked by 05.12.2018 / 13:00