Process.Exit event not being raised

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi there,

I'm running a process object within a .NET app, very simple, the process
is declared with events, i'm handling the Exit event and running a win32
application. No matter how the process closes the event is never raised, is
this because it is a win32 app rather than .NET? I've tried closing,
killing, and even sending a WM_CLOSE event to the window, it closes but no
event is raised.

My only other solution was to keep monitoring the HasExited property on
a background thread but I would rather use the event as that is what it was
created for. Thanks in advance if anyone has any advice on this!

--
Nick Pateman

---------------------------------------------------------------
Any views expressed above are my own
Without predjudice


.



Relevant Pages

  • Re: Process.Exit event not being raised
    ... I'm running a process object within a .NET app, very simple, the ... i'm handling the Exit event and running a ... is this because it is a win32 app rather than .NET? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Whats the big deal with installing .Net?
    ... to reconvert it to Win32. ... The second is Norton Ghost 2005. ... that it was a .NET app, I deleted it and continued using Ghost 2004, ...
    (borland.public.delphi.non-technical)
  • Re: Is developing in VB6 still viable?
    ... Win32 is dying. ... The following is a minimum Delphi GUI that formless compiles to 386k, ... directly so I didn't have to add the dialogs unit: ... How does this relate to a .Net app? ...
    (microsoft.public.vb.general.discussion)
  • Re: Delphi 2005 Personal
    ... In fact I like the C# language and the nice class hierarchy, ... but if I write a .NET app I want it to be ... typical app size is 4-7 MB and it loads significantly slower than Win32. ...
    (borland.public.delphi.non-technical)
  • Re: Merge win32 & MFC in a unique application
    ... MFC uses Win32 under the hood anyway, ... UI handling will be a bit of work - you'll ... I have developed a win32 application and one colleague of mine has ...
    (microsoft.public.windowsce.embedded.vc)