Re: same problem in v4 as previous editions

new topic     » goto parent     » topic index » view thread      » older message » newer message
useless said...

What i did:
1) in Textpad, launch news.ex with C:\euphoria40b1\bin\euiw.exe
2) when the dosbox pops up,
3) in Textpad, switch to http.e window, and add line "blarf"
4) in Textpad, save http.e
5) wait a sec as the running app adds new lines to show it's till running fine
6) in Textpad, edit "with trace" to "without trace", save the file again
7) see dosbox pop up with error as seen in imgbin pic
8) after a screen capture documentation, in the error dosbox, i "Press Enter"
9) Textpad then pops up window as seen at http://imgbin.org/index.php?page=image&id=721

The issue appears to be (yes, I was able to reproduce it) that when euphoria code opens a file for reading, it does not open it for exclusive reading (at least on windows). It looks like if you write to the file during a read, Bad Things Happen. I suppose we could open source files in "u" mode to prevent anyone else from writing to them while we're reading them.

What you were seeing was a wget.ex process (launched by system()) crashing when it happened to read in garbage, or at least, when it started reading from somewhere in the file that it didn't really want to be reading. I'd recommend not editing source code while launching programs that will use that code.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu