Solved

Asynchronus programming

Posted on 2004-08-23
7
158 Views
Last Modified: 2010-05-02
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
Comment
Question by:thebossssgr
7 Comments
 
LVL 5

Expert Comment

by:amit1978
ID: 11879321
Looking for answer
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 11879349
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
 
LVL 5

Expert Comment

by:amit1978
ID: 11879422
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 8

Accepted Solution

by:
mladenovicz earned 250 total points
ID: 11879447
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
 
LVL 8

Expert Comment

by:mladenovicz
ID: 11879450
I meant ActiveX EXE with timer
0
 
LVL 5

Expert Comment

by:amit1978
ID: 11879478
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
 
LVL 18

Expert Comment

by:JR2003
ID: 11879693
Have you tried speeding up the " very slow process" instead?
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now