Re: which memory address space?



Jud McCranie wrote:
On Sun, 17 Jul 2005 22:28:11 +0200, Andreas Koch
<mail@xxxxxxxxxxxxxxx> wrote:


Try it: start the program and disconnect the cable. Does it still run?


Ehm, did you try that?
It should stop to run, because windows loads EXEs partially, and
fails if the EXE gets inaccessible while the app is running.
At least thats the way it worked with floppys ;-)


To my surprise, that seems to be true.  (I thought it loaded the whole
EXE.)  I wrote a 1.2MB EXE to a thumb drive, unplugged the drive,
rebooted (to clear out any cache, etc), plugged in the drive, and
executed the program from it.  Then I unplugged the drive after the
main screen came up.  Then many of the items on the menu would not
execute, they would say "error reading ... external error C0000006".
It would be reading things like an EditMask, etc.

Rebooting wasn't necessary - I tried it a few times just unplugging
the thumb drive, and then not unplugging the drive.  Results were
consistent with it reading parts of the EXE as needed.

---
Replace you know what by j to email
that is because windows only reads in the EXE part, it leaves the
resource on file and only accesses it as it needs it.
 so yes, you need to stay connected to the source of the file, but
every thing happens at the point of where you are working.


-- Real Programmers Do things like this. http://webpages.charter.net/jamie_5

.



Relevant Pages

  • Re: which memory address space?
    ... >fails if the EXE gets inaccessible while the app is running. ... It would be reading things like an EditMask, ... Rebooting wasn't necessary - I tried it a few times just unplugging ...
    (comp.lang.pascal.delphi.misc)
  • Re: Scripting an EXE
    ... Actually it is my mistake to explain the behaviour of the EXE properly. ... Reading the temp files. ... Writing the temp files. ...
    (comp.lang.perl.misc)
  • Re: add exe to XPE
    ... I've been reading about it and I know all the steps to add the component to ... Should I add the .exe and in "files" the files that this exe nedds? ... > directory structure) and create a component that knows how to copy from ... > repository into target directories of your build. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Scripting an EXE
    ... Actually it is my mistake to explain the behaviour of the EXE properly. ... Reading the temp files. ... Writing the temp files. ...
    (comp.lang.perl.misc)
  • Re: OT - Debug Windows EXE
    ... I also ran into a VB decompiler that was a bit ... helpful as far as reading the code. ... Jay Daniel ... I have an old exe. ...
    (microsoft.public.vc.mfc)