Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

Asynchronus programming

I have a project which has a very slow process in a part,which doesn't need to have finished in order for the program to continue.So i wish to find a way in order to keep this process running without halting the other code.

At first i thought of using an activeX Exe,but i am not so very familiar with it and it keeps running as a modal process,which halts the rest.

Any ideas?
0
thebossssgr
Asked:
thebossssgr
1 Solution
 
amit1978Commented:
Looking for answer
0
 
GrahamSkanCommented:
That's called multithreading, which is not really possible in VB
If you don't have to wait for it to finish, why not make it a separate programme and launch it with as Shell command/
0
 
amit1978Commented:
well you can do this by using ActiveX EXE which makes different process and std exe continue execution.

or u can use doevent, i donot know more about this ....... hope this will solve ur problem.


Amit JAin
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
mladenoviczCommented:
You can use ActiveX with timer and you will get "Asynchronous" execution.

http://www.codeproject.com/vbscript/AsyncSample.asp
http://www.vbaccelerator.com/codelib/thread/exethr.htm
0
 
mladenoviczCommented:
I meant ActiveX EXE with timer
0
 
amit1978Commented:
You can use timer but this will check for the out put.

but u can use rais event from your exe that u catch in ur std exe.

Amit Jain
0
 
JR2003Commented:
Have you tried speeding up the " very slow process" instead?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now