Re: locked source files

new topic     » goto parent     » topic index » view thread      » older message » newer message

gertie at visionsix.com wrote:
> Why are Eu source files locked for so long after starting exw on them? It 
> sometimes takes minutes before i can resave a file.

Check your task list (control-alt-delete) to see if you have
any exw.exe processes still running in the background,
maybe waiting for input.

Obviously exw.exe has to open your source files for reading,
and it can't close them until it has finished reading them.
For an include file, that's right after the include is processed.
For the main source file, it's when it reaches the end of the file.
If you start the main processing of your program at the very end
of the main file, e.g. with a call to a main routine, then
the chances are pretty good that exw will have already closed
the main file, having read the last chunk in from the disk.

At one time, I used to close the Euphoria source file after
parsing the last statement, but I changed it to close
immediately after reading in the final (up to) 4K-byte chunk.
That allows me to edit ed.ex using ed.

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu