Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
| Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 21st, 2008, 10:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default System.Diagnostics.Process.Exited Event

Hello,

The Process class has an exited event when you instantiate an instance of the Process class. I tried passing to it an anonymous method as a delegate, but it won't fire. I'm not sure if the issue is with the Process.Exited event, and the rules for which it fires.

Is Exited fired every time? Or do I have to attach to another event in case of error?

Thanks.

Brian
__________________
Brian
  #2 (permalink)  
Old February 25th, 2008, 07:23 AM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by bmains
 Hello,

The Process class has an exited event when you instantiate an instance of the Process class. I tried passing to it an anonymous method as a delegate, but it won't fire. I'm not sure if the issue is with the Process.Exited event, and the rules for which it fires.

Is Exited fired every time? Or do I have to attach to another event in case of error?

Thanks.

Brian
Hi there,
    i saw your quote. let me tell u what does the event does. The Exited event indicates that the associated process exited. This occurrence means either that the process terminated (aborted) or successfully closed. This event can occur only if the value of the EnableRaisingEvents property is true. to know more about it check out the following url.

http://msdn2.microsoft.com/en-us/lib...ss.exited.aspx

Hope this will probably help you.

Thank you
Jitesh
Programmer
Sharepoint Consulting


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Diagnostics in C# 2005 Express onion2k C# 2005 1 January 28th, 2008 12:42 PM
System.diagnostics sapsatin General .NET 0 January 11th, 2007 09:26 AM
System.Diagnostics.Process doesn't work on W2K M/C kan_lenny Pro VB.NET 2002/2003 1 December 23rd, 2006 03:53 AM
System.Diagnostics.Process doesn't work on W2K m/c kan_lenny VB.NET 0 October 2nd, 2006 07:44 PM
have problem with diagnostics.process methods octopus Pro VB.NET 2002/2003 0 December 19th, 2003 04:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.