Re: Alternative process termination notification in a GUI
- From: "f0dder" <f0dder_nospam@xxxxxxxxxxxxxxxx>
- Date: Thu, 25 Aug 2005 11:44:52 +0200
hutch-- wrote:
>>> Learn how to write software that does not crash the first time.
>> Haha - that has to be one of the funniest things I've read in a
>> while :)
>
> Yeah, writing reliable software is really FUNNY if you are not used to
> doing so. Why write reliable software that does not crash when you can
> listen to f0dder and try and catch the crashes after they have
> occured ?
As I said, you're not always writing the application that you have to
monitor for termination. Assuming that all software in the world is
bugfree is pretty much an utopia.
>> Thus this method cannot be used if you need to delete the
>> EXE (temporary file used during installation, for instance), or if
>> you need to update resources or otherwise require write access to the
>> exe.
>
> Neither does the method you have suggested, everyone and their DOG
> knows about the lazy write characteristic of file IO under Windows and
> unles the called APP reliably flushes all of its file data to disk
> before exiting, you cannot asume that it is written to disk on process
> termination notification.
Again you're showing your ignorance, this time of the cache system.
Whether the cache has been flushed to disk or not is irrelevant, what
matters is that there's no process keeping a write-lock on the file.
Besides, I was talking about write access to the EXE file, so your
statement makes no sense at all; a process cannot write to it's own
exe, because of the write lock.
.
- References:
- Alternative process termination notification in a GUI
- From: hutch--
- Re: Alternative process termination notification in a GUI
- From: f0dder
- Re: Alternative process termination notification in a GUI
- From: hutch--
- Re: Alternative process termination notification in a GUI
- From: f0dder
- Re: Alternative process termination notification in a GUI
- From: hutch--
- Alternative process termination notification in a GUI
- Prev by Date: Re: Technical superiority of polling loops
- Next by Date: Re: Alternative process termination notification in a GUI
- Previous by thread: Re: Alternative process termination notification in a GUI
- Next by thread: Re: Alternative process termination notification in a GUI
- Index(es):
Relevant Pages
|
Loading