Re: Alternative process termination notification in a GUI



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.


.



Relevant Pages

  • Re: [OT] Looking for some Zenith Z100 software
    ... The "Z-100 PC" refrers to the line of PCs that Zenith built after the Z-100 that WERE PC compatible. ... The one I used had 5.25 disk ... format that the hardware can do. ... ATTRIB EXE 7438 05-15-85 12:00a ...
    (comp.os.cpm)
  • Re: Question on exe size PLEASE IGNORE LAST POST
    ... Loaded the "wrong" exe onto the zip disk, I loaded one that I have compiled on my laptop. ... Back to square one. ... Pentium 2 or 3 as I remember. ...
    (microsoft.public.vb.general.discussion)
  • Re: Exe compression... and a nice tip.
    ... >> exe is used it is no longer possible to simply toss executable pages ... So when memory gets short, code pages can be simply thrown ... A compressed executable is decompressed into a data segment. ... exact copy of something on disk. ...
    (alt.comp.lang.borland-delphi)
  • Re: Question on exe size PLEASE IGNORE LAST POST
    ... I put a previously laptop compile exe onto the Zip Disk instead of the offending 96mb file. ... Sorry, my mistake. ...
    (microsoft.public.vb.general.discussion)
  • Re: Activex PDF component
    ... I'm dipping back into Delphi 4 for the first time in years to create an ... features is it allows the user to view some pdfs on the CD using Adobe ... activex plugin. ... Everything works fine but if i try to use the exe on a machine that has ...
    (alt.comp.lang.borland-delphi)

Loading