473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

closing a process

hi
i am doing a socket program in c#. and i m invoking a whiteboard
application in
server side and at the same time it should be invoking the other end ie in
client side. i want to close the application in the client end when i close
it in the server side. how can it be possible in c#
how can i get the handle of the whiteboard application while closing the
application.
expecting ur reply

vidya

--
Message posted via http://www.dotnetmonster.com
Nov 17 '05 #1
4 1357
"vidya nair via DotNetMonster.com" <fo***@nospam.DotNetMonster.com> wrote in
news:c5******************************@DotNetMonste r.com:
server side and at the same time it should be invoking the other end ie in
client side. i want to close the application in the client end when i close
it in the server side. how can it be possible in c#


You have to send a signal/command and act on that.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
Nov 17 '05 #2
AFAIK, you can't remotely kill a process. What you can do is send a
message to the other side indicating that this side is closing. The
other side can then shut itself down on seeing the message.

Nov 17 '05 #3
"You can't remotely kill a process?"

You can using WMI. We are doing it now.

"Senthil Kumar" <se**********@wdevs.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
AFAIK, you can't remotely kill a process. What you can do is send a
message to the other side indicating that this side is closing. The
other side can then shut itself down on seeing the message.

Nov 17 '05 #4
You can also do it by having a remoting server on the remote machine that
makes the actual request, and has an interface through which authorized
clients can make the request.

--Bob

"Yosh" <Yo**@nospam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
"You can't remotely kill a process?"

You can using WMI. We are doing it now.

"Senthil Kumar" <se**********@wdevs.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
AFAIK, you can't remotely kill a process. What you can do is send a
message to the other side indicating that this side is closing. The
other side can then shut itself down on seeing the message.


Nov 17 '05 #5

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

Similar topics

0
by: Tam | last post by:
I have a problem trying to close a currently running executable. javaw.exe simply refuses to close. It is in the process list (confirmed by watching Processes in the task manager) and the code...
2
by: Ivan Lam | last post by:
Hi all, Thanks for reading my post!!! I am facing a problem that I cannot redirect StandartOutput and StandardInput at the same time without closing the executive. Actually, I have a...
3
by: Jason Chu | last post by:
I've written a file uploading part of my application using the IHttpModule. So now, I don't have the memory problem of uploading something big. Problem: I can't find which function I have to...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
10
by: Ricky W. Hunt | last post by:
I have written a close routine to handle an "Exit" button to close the application properly. How do I make sure this gets executed if the user closes it another way (by pressing the "X" in the...
5
by: Helen Trim | last post by:
I have scheduled programs that run overnight. One of them leaves a window open and this stops other users opening the program. It is a third-party application. Can I write a vb .NET program to...
8
by: cj | last post by:
I know how to write code to find, kill and closeMainWindow on all processes but I really don't want to do that. I want work with applications not processes. As you know there are a lot more...
2
by: rdemyan via AccessMonster.com | last post by:
I have a custom message form that I want to display when the user shuts down my app. Some clean up needs to be done during shutdown and I want to display this form and then display various...
1
by: Henk van Winkoop | last post by:
Hello, I would like to open a 'Help.chm' file on a button click. I got the advice to use a Process object. //create a process Process prc = new Process; //add filename to the process...
3
by: sewid | last post by:
Hi! I have a very simple windows form (Visual Basic, .NET-Framework 2.0). This is my whole code: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
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...
0
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
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...
0
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,...
0
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...

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.