473,382 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Running sub in a separate process

Hi

Is there a way to run a sub in a separate synchronous or asynchronous
process? One of the reason I would like to do that is I do not want this
process to effect the main app and also to cleanup the process resources
completely after it end.

Thanks

Regards
Apr 29 '07 #1
3 957
Take a look a this link:

http://msdn2.microsoft.com/en-us/lib...s.process.aspx
"John" <Jo**@nospam.infovis.co.ukwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi

Is there a way to run a sub in a separate synchronous or asynchronous
process? One of the reason I would like to do that is I do not want this
process to effect the main app and also to cleanup the process resources
completely after it end.

Thanks

Regards

Apr 29 '07 #2
John,

I don't know about running a sub in a separate process, but you can run it
in a separate thread. An easy way to do that is to use the BackgroundWorker
component.

Kerry Moorman
"John" wrote:
Hi

Is there a way to run a sub in a separate synchronous or asynchronous
process? One of the reason I would like to do that is I do not want this
process to effect the main app and also to cleanup the process resources
completely after it end.

Thanks

Regards
Apr 29 '07 #3
Make a dll from it

"John" <Jo**@nospam.infovis.co.ukschreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi

Is there a way to run a sub in a separate synchronous or asynchronous
process? One of the reason I would like to do that is I do not want this
process to effect the main app and also to cleanup the process resources
completely after it end.

Thanks

Regards

Apr 29 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: nickdu | last post by:
I'm trying to isolate "applications" into their own application domain within a single process. I've quoted applications because it's a logical representation of an application. Basically it...
8
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to...
2
by: Jeffrey Palermo, MCAD.Net | last post by:
I have some classes that control file processing in c#. The files come from a mainframe and may take some time for each to process. I use the Threadpool to process multiple files at once. Each...
14
by: active | last post by:
In VB6 I used to check the app file and if it was VB6 I knew I was in the IDE. I suppose I could figure out how to do the same on dotnet but I wonder if there isn't a better way to determine if...
6
by: seb | last post by:
Hi, I am using pygtk for the first times. I am wondering what would be the best "pattern" to interface pygtk with a thread. The thread is collecting informations (over the network for...
2
by: Sabiyur | last post by:
Hi All, I am working on Windows platform. Is there any way to find out whether the given process running? ( History: I am using WaitForSingleObject. People advised me the WaitForSingleObject...
3
by: John | last post by:
Hi Is there a way to run a sub in a separate synchronous or asynchronous process? One of the reason I would like to do that is I do not want this process to effect the main app and also to...
3
by: Steve | last post by:
I have to move my web services to our QA server for testing. All of the existing web services are configured under a parent web site such as web sites --default web site --webservices -- all web...
7
by: =?Utf-8?B?U2hpdmEgUmFtYW5p?= | last post by:
I have a windows application with multiple forms & another web application. Now I need a parent EXE or Application which need to act as a container to these application. Example : My existing Web...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.