MindscapeHQ / raygun4net

Raygun provider for .NET
https://raygun.com
MIT License
125 stars 91 forks source link

Prevent exception from being thrown and then immediately caught when getting debug information #544

Closed JasenPalmer closed 2 months ago

JasenPalmer commented 2 months ago

This change is to prevent an exception from being thrown and then immediately caught within the TryGetDebugInformation method. Its possible that in certain circumstances, a stack frame originates from a module that only exists in memory. In this situation, the name of the module will not be a locaiton on disk so loading that module from disk will fail. This causes the PEReader to be null.