What does this RiskyAction thing do?

RiskyAction Docs

Does it allow me to create info that gets included in a crash report? Or is it for C++ interop? It sounds very useful if you know what you’re doing. And currently, I sure don’t!

– cs

1 Like

This helps define the current action being taken in Rhino. If a crash occurs, the active risky action is reported in our crash reporting system.

2 Likes

And if I create one, will it be automatically registered into the crash reporting? e.g

var risky = new RiskyAction("Here we're doing some weird boolean stuff", "The File", nameof(WeirdBooleanmethod), 100);

Yes this would get registered for crash reporting, but please place this in a using statement so it gets disposed.

I promise to use these newfound powers responsiblyish

4 Likes