• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • 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
 
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
 
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
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
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.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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