Solved

Asynchronus programming

Posted on 2004-08-23
7
161 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

808 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