473,480 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How To Create "Out Of Process" Components

Hello,

in VB6 we werr able to make ActiveX-DLL's (In Process Components) and
ActiveX-Exe (Out Of Process Components).

Out Application is build of one main application that starts other
modules. These modules are ActiveX-Exe's. The main application
controls the modules via ActiveX.

We decided to use ActiveX-Exe because we want to run the modules in
separate processes. So when one module crashes the others are still
available.

Now we want to migrate to .NET.

How can I create a "Out of Process" component with .NET.

When I call a method of a .NET class library, these component always
runs in the same process as the calling application.

Any ideas?

Thanks in advance.

Best regards,

Ulrich Henne
Jul 21 '05 #1
3 7985
Ulrich,

You can use .NET Remoting to allow two processes to talk to each other.
This is not the same thing as out-of-process components in VB6, but it
should provide you with the functionality you desire. Also, take a
look at application domains (the AppDomain class) for more isolation
options.

Brian

Henne wrote:
Hello,

in VB6 we werr able to make ActiveX-DLL's (In Process Components) and
ActiveX-Exe (Out Of Process Components).

Out Application is build of one main application that starts other
modules. These modules are ActiveX-Exe's. The main application
controls the modules via ActiveX.

We decided to use ActiveX-Exe because we want to run the modules in
separate processes. So when one module crashes the others are still
available.

Now we want to migrate to .NET.

How can I create a "Out of Process" component with .NET.

When I call a method of a .NET class library, these component always
runs in the same process as the calling application.

Any ideas?

Thanks in advance.

Best regards,

Ulrich Henne


Jul 21 '05 #2
Hello Brian,

thanks for your reply.

For me, remoting always was a call on a business component that will
do something, return a value and then is gone.

What I am looking for is a component with a windows front end or let's
say a windows application with an external control inteface. This
application should stay alive as long the calling application has a
link to it.

For me it is not clear if this will still be the right way.
If yes, should I write my own hosting application or use IIS?

Thanks in advance.

Best regards

Ulrich

"Brian Gideon" <br*********@yahoo.com> wrote in message news:<11*********************@g14g2000cwa.googlegr oups.com>...
Ulrich,

You can use .NET Remoting to allow two processes to talk to each other.
This is not the same thing as out-of-process components in VB6, but it
should provide you with the functionality you desire. Also, take a
look at application domains (the AppDomain class) for more isolation
options.

Brian

Henne wrote:
Hello,

in VB6 we werr able to make ActiveX-DLL's (In Process Components) and
ActiveX-Exe (Out Of Process Components).

Out Application is build of one main application that starts other
modules. These modules are ActiveX-Exe's. The main application
controls the modules via ActiveX.

We decided to use ActiveX-Exe because we want to run the modules in
separate processes. So when one module crashes the others are still
available.

Now we want to migrate to .NET.

How can I create a "Out of Process" component with .NET.

When I call a method of a .NET class library, these component always
runs in the same process as the calling application.

Any ideas?

Thanks in advance.

Best regards,

Ulrich Henne

Jul 21 '05 #3
Ulrich,

My comments are inline.

Brian

Henne wrote:
Hello Brian,

thanks for your reply.

For me, remoting always was a call on a business component that will
do something, return a value and then is gone.
That's the behavior you get with a server activated object (SAO) that
is setup with the WellKnownObjectMode.SingleCall option. The
WellKnownObjectMode.Singleton option will allow clients to participate
in the lifetime of the object. I'm strictly speaking about the
lifetime of the remoted object here. The lifetime of the host process
is a different issue.
What I am looking for is a component with a windows front end or
let's say a windows application with an external control inteface.
This application should stay alive as long the calling application
has a link to it.
This is definitely doable with .NET Remoting.
For me it is not clear if this will still be the right way.
If yes, should I write my own hosting application or use IIS?
If you use IIS then you will need IIS installed on every machine your
remotable application runs on.
Thanks in advance.

Best regards

Ulrich


Jul 21 '05 #4

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

Similar topics

0
4046
by: John Bonds | last post by:
I have designed a multi-threaded application that manipulates images (CCITT Group 4 TIFF Images). I'm getting some strange behavior and I'm wondering if anyone else is seeing the same thing. I run...
0
1330
by: Eric Brasher | last post by:
I am trying to work with the new sdk 3.0 from quickbooks which allows subscriptions to events in the quickbooks app. One problem I am having is creating an activex exe using vb.net. The...
11
5249
by: Shane Suebsahakarn | last post by:
Hi all, This might be one of those things for which there is no workaround. I'm using A2K2, and using it to perform a very large batch ouput. Both the front and back ends are MDB files, so no...
3
2979
by: kris.dorey | last post by:
Hi, Ive got the following code which seems ok but when the user runs the function for a second time I get an error message stating that the mdb is in use by another process. There is still an...
3
3656
by: Loane Sharp | last post by:
Hi there I use the FileStream object to download a zip file over the internet to my local disk. The file downloads successfully, but when I attempt to unzip it, I'm told that the file is in use...
3
432
by: Henne | last post by:
Hello, in VB6 we werr able to make ActiveX-DLL's (In Process Components) and ActiveX-Exe (Out Of Process Components). Out Application is build of one main application that starts other...
3
8957
by: google.100.frause | last post by:
Previously I had the same Problem discussed and solved here: http://clariusconsulting.net/blogs/hdl/archive/2005/12/02/410.aspx?CommentPosted=true#commentmessage but now I've got the next...
4
2704
by: hagaihe | last post by:
Hello, I've written a Windows service and i need help to implement the meaning of the sentence which is generated automatically by the IDE // More than one user Service may run within the same...
1
8303
by: Christoph | last post by:
I have a cmd file (batch file) which starts an exe after setting parameters. I need to find out the Process ID of the exe via a command. The problem is that my program, written in C# only knows the...
0
7054
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,...
0
7102
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...
1
6756
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5357
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,...
1
4798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3008
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3000
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1310
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
570
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.