C
Cor Ligthert [MVP]
Cesar,
1 milliseconds is not so much
)
Cor
1 milliseconds is not so much
)Cor
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
)Cesar Ronchese said:Unfortunatelly, I cant use event... the server program controls when the
task was executed and dispatch it to client, which is already waiting the
for response.
m.posseth said:that code is already the correct practice?
i think that the answer depends on the rest of your code
i would prefer an event driven aproach , if you are bussy with threading
regards
Michel Posseth [MCP]
Cesar Ronchese said:Well, I guess that code was taking too many CPU execution. By your
answer, that code is already the correct practice?
Cesar,
1 milliseconds is not so much
)
Cor
"Cesar Ronchese" <info||carsoftnet.com.br> schreef in bericht
Hey all.
I need a improved code that waits for a execution before an another
precedure terminate processing.
Nowadays, I use the following code:
(...) 'executing some new threaded function...
'loop
While Not ThatFunctionTerminated
System.Windows.Forms.Application.DoEvents()
Syste.Threading.Thread.Sleep(1)
End While
(...) 'code to response to user...
But this code devoures some CPU processing.
There are some inbuilt method that waits for a procedure execution,
with no UI locking?
That loop runs in a server application, so that can be called many
times at same time. And the administrator need to be able to open the
server application and work with it, with no UI locking.
Cesar
m.posseth said:that code is already the correct practice?
i think that the answer depends on the rest of your code
i would prefer an event driven aproach , if you are bussy with threading
regards
Michel Posseth [MCP]
Cesar Ronchese said:Well, I guess that code was taking too many CPU execution. By your
answer, that code is already the correct practice?

Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.