COBRT210 File is closed with lock (Fatal)

Resolution:

Recode your program to avoid opening a file which has previously been closed with lock.