Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: FirstChanceException logging

$
0
0
I have code like this for FirstChanceException:  01  currDomain                type System.AppDomain. SET currDomain TO type AppDomain::CurrentDomain. ATTACH METHOD FirstChanceHander TO currDomain::FirstChanceException().        method-id FirstChanceHander static            attribute System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions.        local-storage section.        procedure division using by value sender as object e as type FirstChanceExceptionEventArgs.            GOBACK.        end method. Does anyone know how to write to a log from this handler?  I tried updating my own ASCII log file but that causes an exception because this method is static.  I'm trying to log some of the e::Exception properties.

Viewing all articles
Browse latest Browse all 5819

Trending Articles



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