I want to write an exe that references a dll.
At some point, i conditionally want the dll to shut down the exe and
continue running some methods.
Is that possible?
( I guess it would be like an old school out of process com activex
server).
--
The Texeme Construct, http://www.texeme.com
360, http://360.yahoo.com/manfrommars_43 9 2893
On Sun, 28 Aug 2005 10:57:05 -0700, John Bailo <ja*****@texeme.com> wrote:
€
€ I want to write an exe that references a dll.
€
€
€ At some point, i conditionally want the dll to shut down the exe and
€ continue running some methods.
€
€ Is that possible?
€
€ ( I guess it would be like an old school out of process com activex
€ server).
Unfortunately there is no equivalent to an ActiveX EXE in .NET, nor do DLLs run out of process.
Why not just create another EXE instead?
Paul
~~~~
Microsoft MVP (Visual Basic)
If you make the DLL a COM+ server component it will run out of process.
Paul Clement wrote: Why not just create another EXE instead?
Interesting.
Can I reference a "exe" and it's methods from another exe (like a class
library)?
Paul Clement wrote: On Sun, 28 Aug 2005 10:57:05 -0700, John Bailo <ja*****@texeme.com> wrote:
€ € I want to write an exe that references a dll. € € € At some point, i conditionally want the dll to shut down the exe and € continue running some methods. € € Is that possible? € € ( I guess it would be like an old school out of process com activex € server).
Unfortunately there is no equivalent to an ActiveX EXE in .NET, nor do DLLs run out of process.
Paul ~~~~ Microsoft MVP (Visual Basic)
steve wrote: If you make the DLL a COM+ server component it will run out of process.
My eyes are glazing over...
Just kidding, I'd like to stay w/in the bounds of .NET
On 29 Aug 2005 11:03:17 -0700, "steve" <st*******@hotmail.com> wrote:
€ If you make the DLL a COM+ server component it will run out of process.
Yes, but it doesn't run unattended, so shutting down it's client will likely destroy the reference
to the DLLHost process.
Paul
~~~~
Microsoft MVP (Visual Basic)
On Mon, 29 Aug 2005 11:29:00 -0700, John Bailo <ja*****@texeme.com> wrote:
€ Paul Clement wrote:
€ > Why not just create another EXE instead?
€
€ Interesting.
€
€ Can I reference a "exe" and it's methods from another exe (like a class
€ library)?
€
No, but why do you need to do that?
Paul
~~~~
Microsoft MVP (Visual Basic)
Paul Clement wrote: No, but why do you need to do that?
I wand to build my own assembly updater.
A design:
Build a dll, that communicates with a web service to look up the current
version number.
Each of my exe's, when deployed, reference the dll, which uses the
..GetCallingAssembly method to find the version of the exe.
If they don't match, I need to shut down the exe (or in a more
sophisticated version, fill the existing memory space of the exe using
Reflection), copy the new assembly, and restart it.
At this point, the idea of replacing the existing copy in memory sounds
like a better solution, if I can
(a) do it
(b) persist the assembly to disk after replacing it in memory.
Paul ~~~~ Microsoft MVP (Visual Basic)
On Mon, 29 Aug 2005 11:29:00 -0700, John Bailo wrote: Paul Clement wrote: > Why not just create another EXE instead?
Interesting.
Can I reference a "exe" and it's methods from another exe (like a class library)?
I don't see why not. But if not, why not move the necessary classes to a
DLL that both exes can reference.
Ross Presser wrote: On Mon, 29 Aug 2005 11:29:00 -0700, John Bailo wrote:
Paul Clement wrote: > Why not just create another EXE instead?
Interesting.
Can I reference a "exe" and it's methods from another exe (like a class library)?
I don't see why not. But if not, why not move the necessary classes to a DLL that both exes can reference.
I see, so start another exe that performs the work.
Another poster described a loader that he launches first to do the check.
I'd rather have them run the app first, but then I could launch the
second exe that continues to process while the first shuts down.
Great idea(!) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Peter Åstrand |
last post by:
There's a new PEP available:
PEP 324: popen5 - New POSIX process module
A copy is included below. Comments are appreciated.
----
PEP: 324
Title: popen5 - New POSIX process module
|
by: Mike M |
last post by:
Is it possible? In the parent process, I have a socket that binds,
listens and then accepts new connections (which creates new sockets in
the process). I want to be able to pass some of these new...
|
by: Michael J. Moore |
last post by:
Is it the listener process, or some other Oracle process. Also, on a UNIX
system, when you do "ps -ef" to see your processes, the PPID points back to
a process named "init". Why does the PPID not...
|
by: serge calderara |
last post by:
Dear all,
I have an application which is suppose to start another executable process.
As soon as that process is running, I need to retrive its handle. The
problem of the particular process I am...
|
by: Charles Law |
last post by:
Hi guys
I have a time critical process, running on a worker thread. By "time
critical", I mean that certain parts of the process must be completed in a
specific time frame. The time when the...
|
by: Dmitri Shvetsov |
last post by:
Hi,
Can I start an external process from the Web Service?
I'm using a code, compiler keeps silence, compiles ok and starts the
project. When I trace in Debugger it doesn't start an external...
|
by: Sorin Dolha [MCSD .NET] |
last post by:
I would like to start a process from C# code as another user. The C# code is executed as the ASPNET user because it relies in a Web Page class, and I would like that the process will run as another...
|
by: GTS |
last post by:
Hi All,
I am spawning a process from a service. The spawned process hungs for
various reasons, (corrupted data, deadlock). I am expecting the process has
to complete the task with in the...
|
by: Jon Davis |
last post by:
Does anyone know why using System.Diagnostics.Process to "wrap" a console
application does not always transmit the I/O, depending on what processes
you're trying to "consume"? PowerShell, for...
|
by: =?Utf-8?B?U3Jhag==?= |
last post by:
There is a process A that launches process B as a COM object.
If the User tries to end process A, process B should also end. But vice
versa is not true. Process A can run independant of process. It...
|
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,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
| |