Page 1 of 1

File In Use!

PostPosted: Mon Oct 29, 2018 10:04 pm
by feelinLucky
Stan,

I can't delete a text file once loaded into EL. I get a "File In Use error". Why does EL lock txt files? Those are the only type files I have trouble with. Is this a java garbage collection problem or your code is not releasing the file.

Thanks

el.png

Re: File In Use!

PostPosted: Mon Nov 05, 2018 6:44 pm
by stan
Could be a bug in Expert Lotto. How do you load the text file into the application?

Re: File In Use!

PostPosted: Mon Nov 05, 2018 8:57 pm
by feelinLucky
They are loaded via the "Insert Ticket File into the Package" icon or [F6].

Thanks

Re: File In Use!

PostPosted: Mon Nov 05, 2018 11:41 pm
by stan
I tried inserting a text file into Package and I could delete or edit that file without any problems.
Is this happening every time?

Re: File In Use!

PostPosted: Tue Nov 06, 2018 9:03 pm
by feelinLucky
I should have provided more details. I have external processes for index files. I normally load an index file into EL for removing dups and sorting, then the file is re-saved for processing again outside of EL. This is when EL locks the file. Sometimes the file is locked after the first load or on the subsequent load, but it is consistent. And I must say that it really breaks my work flow.

If you are trying to reproduce the problem, save a package as ticket indexes then make some changes to the save file and re-load it one or two times then try to delete it. Do it a few times!! By the way, the only way to move forward when the file is locked is restarting EL.

Thanks for looking into the problem.

Re: File In Use!

PostPosted: Tue Nov 06, 2018 10:25 pm
by stan
Thanks for the clarification. I think I found the problem so the next app update will hopefully fix it.

Re: File In Use!

PostPosted: Tue Nov 06, 2018 11:48 pm
by feelinLucky
That would be fantastic! Again, thanks for looking into the problem.