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 3 8071
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
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*********@ya hoo.com> wrote in message news:<11******* **************@ g14g2000cwa.goo glegroups.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
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 WellKnownObject Mode.SingleCall option. The
WellKnownObject Mode.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 a batch process that reads in
pages of one of these TIFF files, separates them out into different TIFF
files, saves them to a file (in a new thread) and disposes properly of all
the memory that was used.
I run this batch process and monitor the...
|
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 subscription process states that the com
object used to recieve events from qb has to run out of
process.
How do I create an "Out of Process" compatible solution
in vb.net?
|
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 SQL Server involved here. Both SP3 and
Jet SP8 have been updated, and the platform is running on a dual-processor
3Ghz Xeon Win2K3 Server box with 2GB RAM.
The batch run outputs 6 or 7 reports to approximately 16-17,000 snapshot
files None of the...
|
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 ldb for the life of the
application even after calling oldebconnection.close and gc.collect.
Any ideas?
|
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 by another process. This occurs even if I
release the object using fs.Close() and fs = Nothing.
Please help (my code is given below)
Best regards
| |
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
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
|
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 problem. "application failed to initialize
properly (0xc0000142). Click OK to terminate the application.".
I'm running a service, trying to create a process, redirecting the
output and I enabled the Event Raising.
|
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 process. To add
// another service to this process, change the following line to
// create a second service object. For example,
//
// ServicesToRun = new System.ServiceProcess.ServiceBase {new
Service1(), new MySecondUserService()};
|
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
PID of the cmd file. I don't want to use a method like
GetAllProcesses(). If I want to kill the processes (both the cmd and
the exe) I have to kill the exe. Otherwise the exe process is still
alive. The "taskkill" command is also not helpful...
|
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...
|
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,...
| |
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |