Hi, there,
I have an application running on remote machine, and would like to close it
gracefully. Like a human go to there, push the stop button, and close it
after several seconds.
How to implement that in C#? Any suggestion?
Thanks lot,
Gary 2 1776
The most simplistic method you are going to find would be to have your
application open a port and wait for a new connection to it that sends a
specific value/string across, which if found calls Application.Exi t().
Brendan
"Gary" wrote: Hi, there,
I have an application running on remote machine, and would like to close it gracefully. Like a human go to there, push the stop button, and close it after several seconds. How to implement that in C#? Any suggestion?
Thanks lot,
Gary
Hi, there,
Thank you very much for your reply. Could you please explain that in detail?
The application is coded in COM. How to open a port, and listening in that
case? And how to implement the sending in C# program?
Thanks lot,
Gary
"Brendan Grant" wrote: The most simplistic method you are going to find would be to have your application open a port and wait for a new connection to it that sends a specific value/string across, which if found calls Application.Exi t().
Brendan
"Gary" wrote:
Hi, there,
I have an application running on remote machine, and would like to close it gracefully. Like a human go to there, push the stop button, and close it after several seconds. How to implement that in C#? Any suggestion?
Thanks lot,
Gary This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marina Anufreichik |
last post by:
Hi,
After deploymnet web application on web server I can access page on local
machine and login fine but when I'm trying to access web site from remote
machine I can see login page, but when I'm trying to login with correct
credentials it give me error:
Server Error in '/PDVMgr' Application.
----------------------------------------------------------------------------
|
by: kuldeep |
last post by:
Hi all,
I have a application developed in C# .net. The problem I face is I am unable
to shutdown my machine
when the exe is running. Windows is unable to close this exe an shut down.
Can anyone help.
Regards,
Kuldeep Pawar
|
by: Diogo Alves - Software Developer |
last post by:
Hi,
I have a application developed by me in C# that does not let windows shut
down!
What is the problem? is this a Framework bug?
I would like to receive some feedback about this issue
|
by: Anders Both |
last post by:
If no pages in my asp.net web-system, is being requested for some periode,
it seems like the asp.net process is shut down automaticaly. Is this a
normal behavior, or does my system contains some kind of bug or wrong
configuration ?
I don´t want my asp.net process to ever shut down, because I want to keep
data, object etc, in ram.
I hope someone can give me good advices.
|
by: Ken Kolda |
last post by:
We're using .NET remoting hosted under IIS but we're running into problems
with the server shutting down the ASP.NET worker process unexpectedly. Since
I know this can occur because of the settings in the <processModel> area of
the machine.config, we've tried a couple of things to resolve this:
1) We ensured all the timeout/request limit settings were set to "Infinite"
and the memory limit set to 100%.
2) We tried setting the "logLevel"...
| |
by: cow3 |
last post by:
Is there anyone who can help me with this:
I have written a fairly complicated vb application of hydrological
model that does a lot of number crunching. The model creates a set of
object variables before entering the main loop and then main
calculations are done within the main loop using the object variables
previously created. The application starts off with pretty good
performance. But, after a while, it starts to slow down gradually...
|
by: Bubba |
last post by:
Hi,
We have HttpHandlers that can process requests for up to 50 minutes. Those
HttpHandlers are running in an app domain inside the DefaultAppPool. We'd
like the HttpHandlers to be able to detect when its containing app pool or
app domain is requesting a shutdown (when it is recycling, for example). I
looked at the Application_End method in global.asax, as well as the System.
AppDomain.CurrentDomain.DomainUnload event. Neither get...
|
by: sashi |
last post by:
Shut down Windows
For various reasons you may require a shut down of Windows to happen programmatically. For instance if the installation of your program requires system reconfiguration. The following code will do this for you with options to Reboot, etc.
'Module code - modShutdown
' Shutdown Flags
Const EWX_LOGOFF = 0
Const EWX_SHUTDOWN = 1
|
by: TC |
last post by:
I'm confused about the proper way to shut down my application.
I have a form which instantiates a control, which instantiates another
control, which instantiates yet another control that runs a time-
consuming loop. I put Application.DoEvents() into the loop so the user
can continue to work on the form while the loop is running. Everything
works great until the user wants to exit the application. The
application will not close until the...
|
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...
|
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...
| |
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: 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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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.
| |