1. ex.err problem
- Posted by George Walters <gwalters at sc.rr.com> Mar 08, 2007
- 463 views
- Last edited Mar 09, 2007
I have a program error and I get the message that it can't create the ex.err file. All other programs have not problem doing this. Any Ideas would be helpful. All programs run in c:acutrack/source icluding this one and normally the ex.err file is dropped there. Why this program cannot create the ex.err file I've no Idea. Hopefully one of you bright guys can find the solution. thanks.
2. Re: ex.err problem
- Posted by don cole <doncole at pacbell.net> Mar 08, 2007
- 457 views
- Last edited Mar 09, 2007
George Walters wrote: > > > I have a program error and I get the message that it can't create the ex.err > file. All other programs have not problem doing this. Any Ideas would be > helpful. All programs run in c:acutrack/source icluding this one and normally > the ex.err file is dropped there. Why this program cannot create the ex.err > > file I've no Idea. Hopefully one of you bright guys can find the solution. > thanks. Maybe your not closing everything you're opening. Don Cole
3. Re: ex.err problem
- Posted by George Walters <gwalters at sc.rr.com> Mar 08, 2007
- 472 views
- Last edited Mar 09, 2007
Well, I've located the problem finally. That was exactly the problem Don.I was continually opening files w/o closeing them (in error) and it finally ran out of open files. So prtFn = open(rptFile, "w") puts(prtFn,"+p\n \n \n") the puts had a negative prtFn value and crashed, but EU could not open an ex.err file.... seems like EU could have close all the files before trying to open another one for the ex.err file (this is on EU 2.4)
4. Re: ex.err problem
- Posted by Jason Gade <jaygade at yahoo.com> Mar 08, 2007
- 466 views
- Last edited Mar 09, 2007
Your problem gave me an idea. At first I was going to suggest that Euphoria open up ex.err at the beginning of its run so that it makes sure it has a good file handle, even if it doesn't write anything. The file would never show up if it isn't written to. However I don't think this would work if Euphoria was run in an environment where it did not have write permissions and may even cause an error itself. There should be some way for the interpreter to reserve a file descriptor for ex.err. -- "Any programming problem can be solved by adding a level of indirection." --anonymous "Any performance problem can be solved by removing a level of indirection." --M. Haertel "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.
5. Re: ex.err problem
- Posted by Andy Serpa <ac at onehorseshy.com> Mar 08, 2007
- 476 views
- Last edited Mar 09, 2007
Jason Gade wrote: > > > There should be some way for the interpreter to reserve a file descriptor for > ex.err. I believe the latest versions let you know if it can't create the ex.err due to too many open files -- in any case, that's almost always the problem when that happens...