473,800 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 975
Take a look a this link:

http://msdn2.microsoft.com/en-us/lib...s.process.aspx
"John" <Jo**@nospam.in fovis.co.ukwrot e in message
news:%2******** ********@TK2MSF TNGP05.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 BackgroundWorke r
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.in fovis.co.ukschr eef in bericht
news:%2******** ********@TK2MSF TNGP05.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
2689
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 consists of a bunch of components supplied by some application group. I got this to work, somewhat. The problem is that the application performs roughly (and this has not been measured, but a guess based on the rendering of the application GUI) 10x...
8
3042
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 what I really should do. I've had a look through Programming Python and the Python Cookbook, which have given me ideas, but nothing has gelled yet, so I thought I'd put the question to the community. But first, let me be a little more detailed...
2
2444
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 instance of the file processor is spawned in its own AppDomain to isolate it (I'm using a separate AppDomain for a valid reason, so this thread isn't to discuss that). My process is a Windows service, but I can duplicate this problem as a regular...
14
1348
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 a program is running in the IDE or as standalone. Is there? Cal
6
2872
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 example) or is doing some long calculations.
2
3326
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 could hang if the process for which we are waiting terminated earlier to calling WaitForSingleObject. So I am trying to check whether the given process is running)
3
1690
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 cleanup the process resources completely after it end. Thanks Regards
3
1572
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 services The web service directory is configured for .NET 1.1, my new web services are .NET 2.0, I made the change on the ASP.NET to .NET 2.0 for my new web services, but I still can't run them. Do I need to create a new folder for my .NET 2.0 web...
7
4851
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 application : http://localhost/MyApp/Default.aspx My existing Win Application : existingWinApp.exe New Parent WinApp : NewWinApp.exe My new winapp will have a menu & below which I will have a form holder.
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10276
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10035
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.