Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: File remains locked after managed COBOL returns to ASPX caller

$
0
0

As jholland states, you can add exception handling around the call statement using try/catch syntax so that you can close the file before the exception is passed back to the main program. In this scenario where you have a multi-threaded web application where all the programs and threads are writing to the same log file it might be a good idea to implement an open-->write-->close approach for each message being written so that the file is not kept in an open extend state.

Are you performing your COBOL programs within a RunUnit created by the C# .aspx program?


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>