1. ex.err problem

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.

new topic     » topic index » view message » categorize

2. Re: ex.err problem

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: ex.err problem

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)

new topic     » goto parent     » topic index » view message » categorize

4. Re: ex.err problem

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.

new topic     » goto parent     » topic index » view message » categorize

5. Re: ex.err problem

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...

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu