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

RE: release Excel from memory in Visual Cobol

$
0
0

You can release the memory on the COM objects created from the Excel interop class using something like:

$set ilusing"System.Runtime.InteropServices"

          Invoke type Marshal::FinalReleaseComObject(myworkbook)

     *   invoke type Marshal::FinalReleaseComObject(myworkbooks)

etc...          

         invoke type GC::Collect


Viewing all articles
Browse latest Browse all 4356

Trending Articles



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