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.
#VisualCOBOL



