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?
thebossssgrAsked:
Who is Participating?
 
mladenoviczConnect With a Mentor Commented:
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
 
amit1978Commented:
Looking for answer
0
 
GrahamSkanRetiredCommented:
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.