Java gets a lock on opened file preventing others to get a write lock
Posted on 2011-09-15
We are opening a website from our application , which has a java digital sign applet running for signing xml files with .pfx.
But due to this ,java gets a lock on all the open files in our program.
We cannot get a write lock on that file using ,
Open App.path & "\" & "BlackBox" & ".LOG" For Random Access Read Write Lock Write As #LOGNUM Len = LOGLEN
It will also not allow to kill that file.
Can anyone explain this behaviour of java and suggest a workaround?
Also, after i read that file in a vb code, it will allow me to get a write lock on that file. strange!