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

Cobol .Net Exception Handling

$
0
0

Why does the exception handling var myex always reference "object reference not set to an instance of object"  

Catch myex as type Exception
set str = str::Append("Source " & myex::Source)
set str = str::Append("Number " & myex::StackTrace)
set str = str::Append("Line Number " & myex::TargetSite)
set str = str::Append("Data Exception " & myex::GetType::ToString)
invoke type Debug::WriteLine(str)


Viewing all articles
Browse latest Browse all 4356

Trending Articles



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