Hi All,
I have an app the runs something, for instance copies a file. During this
time my app is locked up. I have tried throwing a bunch of DoEvents in but
nothing happens to allow me to work on other parts of the program. Is there
something that can help here, or do I need to look at multi-threading?
Thanks,
John. 8 1372
Threads. Go for it.
John Rugo wrote: Hi All, I have an app the runs something, for instance copies a file. During this time my app is locked up. I have tried throwing a bunch of DoEvents in but nothing happens to allow me to work on other parts of the program. Is there something that can help here, or do I need to look at multi-threading?
Thanks, John.
Threads. Go for it.
John Rugo wrote: Hi All, I have an app the runs something, for instance copies a file. During this time my app is locked up. I have tried throwing a bunch of DoEvents in but nothing happens to allow me to work on other parts of the program. Is there something that can help here, or do I need to look at multi-threading?
Thanks, John.
threading will fix this up for you.. create your process as a sub you want
to run import the system.threading namespace and create a thread like this
dim myThread as system.thread(addressof mySub)
myThread.start()
thats just a generic example of it, MSDN can help you a lot more. Threading
is a good thing to know with process intensive applications
"John Rugo" <jr***@patmedia.net> wrote in message
news:eV*************@tk2msftngp13.phx.gbl... Hi All, I have an app the runs something, for instance copies a file. During this time my app is locked up. I have tried throwing a bunch of DoEvents in
but nothing happens to allow me to work on other parts of the program. Is
there something that can help here, or do I need to look at multi-threading?
Thanks, John.
threading will fix this up for you.. create your process as a sub you want
to run import the system.threading namespace and create a thread like this
dim myThread as system.thread(addressof mySub)
myThread.start()
thats just a generic example of it, MSDN can help you a lot more. Threading
is a good thing to know with process intensive applications
"John Rugo" <jr***@patmedia.net> wrote in message
news:eV*************@tk2msftngp13.phx.gbl... Hi All, I have an app the runs something, for instance copies a file. During this time my app is locked up. I have tried throwing a bunch of DoEvents in
but nothing happens to allow me to work on other parts of the program. Is
there something that can help here, or do I need to look at multi-threading?
Thanks, John.
Hi John,
I add something to the other answers.
Threading takes more overall processor time than not using threading. It can
save total throughput time where there are detectable assynchronous
processes.
When the copying process is an assynchrone process, (your program is not
dependable from the error free end of the copying process) than
multithreading is in my opinon too the way to go.
Copying is a single command process. And therefore when it is not the the
situation above, than is in my opinon the solution to start a little splash
screen something has (pseudo code)
\\\
frmsplsh as formsplash 'with wait etc
frmsplsh.show
'copy process
frmsplsh.close
frmsplsh.dispose
///
Just my thought
Cor
Hi John,
I add something to the other answers.
Threading takes more overall processor time than not using threading. It can
save total throughput time where there are detectable assynchronous
processes.
When the copying process is an assynchrone process, (your program is not
dependable from the error free end of the copying process) than
multithreading is in my opinon too the way to go.
Copying is a single command process. And therefore when it is not the the
situation above, than is in my opinon the solution to start a little splash
screen something has (pseudo code)
\\\
frmsplsh as formsplash 'with wait etc
frmsplsh.show
'copy process
frmsplsh.close
frmsplsh.dispose
///
Just my thought
Cor
Thanks for the help. I have tried using this and it seems to work well
John.
"Brian Henry" <brian.henry[nospam]@adelphia.net> wrote in message
news:OP*************@TK2MSFTNGP10.phx.gbl...
threading will fix this up for you.. create your process as a sub you want
to run import the system.threading namespace and create a thread like this
dim myThread as system.thread(addressof mySub)
myThread.start()
thats just a generic example of it, MSDN can help you a lot more. Threading
is a good thing to know with process intensive applications
"John Rugo" <jr***@patmedia.net> wrote in message
news:eV*************@tk2msftngp13.phx.gbl... Hi All, I have an app the runs something, for instance copies a file. During this time my app is locked up. I have tried throwing a bunch of DoEvents in
but nothing happens to allow me to work on other parts of the program. Is
there something that can help here, or do I need to look at multi-threading?
Thanks, John.
Thanks for the help. I have tried using this and it seems to work well
John.
"Brian Henry" <brian.henry[nospam]@adelphia.net> wrote in message
news:OP*************@TK2MSFTNGP10.phx.gbl...
threading will fix this up for you.. create your process as a sub you want
to run import the system.threading namespace and create a thread like this
dim myThread as system.thread(addressof mySub)
myThread.start()
thats just a generic example of it, MSDN can help you a lot more. Threading
is a good thing to know with process intensive applications
"John Rugo" <jr***@patmedia.net> wrote in message
news:eV*************@tk2msftngp13.phx.gbl... Hi All, I have an app the runs something, for instance copies a file. During this time my app is locked up. I have tried throwing a bunch of DoEvents in
but nothing happens to allow me to work on other parts of the program. Is
there something that can help here, or do I need to look at multi-threading?
Thanks, John.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: m |
last post by:
Hello,
I have an application that processes thousands of files each day. The
filenames and various related file information is retrieved, related
filenames are associate and placed in a linked...
|
by: rob |
last post by:
Hello,
I have a DOS program that I need to execute from a WinForm application.
This DOS program will take a long time to execute. During execution it
prints out messages. While the DOS program...
|
by: WATYF |
last post by:
This is my problem... I have some code that starts a Process and
returns it to a variable... (prcBat)
At any time while that process is running... I want to be able to Kill
it by pressing a...
|
by: John Rugo |
last post by:
Hi All,
I have an app the runs something, for instance copies a file. During this
time my app is locked up. I have tried throwing a bunch of DoEvents in but
nothing happens to allow me to work...
|
by: Patrick A. |
last post by:
Dll written in VB.NET 2003 to start a command remotely.
You can :
- launch the command and wait until it's finished. (Ex. 1)
- launch the command providing a timeout in seconds, it will wait...
|
by: ABCL |
last post by:
Hi All,
I am working on the situation where 2 different
Process/Application(.net) tries to open file at the same time....Or one
process is updating the file and another process tries to access...
|
by: andre.naess |
last post by:
Hi all
I'm currently having some issues with a process getting deadlocked. The
problem is that the only way I can seem to find information about where
it deadlocks is by making a wild guess,...
|
by: =?Utf-8?B?Z215ZXJz?= |
last post by:
Hello,
I am attempting to start a cmd.exe process and pass several .vbs scripts
(with additional parameters) and then read the output from the scripts and
make "notes" in a DataTable (the...
|
by: bhunter |
last post by:
Hi,
I've used subprocess with 2.4 several times to execute a process, wait
for it to finish, and then look at its output. Now I want to spawn
the process separately, later check to see if it's...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |