У меня есть эта строка кода, которая иногда получает исключение FatalExecutionEngineError
:
Double? TimeTakenToStopProbe = Math.Round(((TimeSpan)(ProbeEndDateTime - CancelationRequestDateTime)).TotalSeconds, 3);
, где ProbeEndDateTime
и CancelationRequestDateTime
не являются нулевыми DateTime
объектами с действительными даты и время в них.
Полное объяснение исключений, данное мне Visual Studio, следующее:
Managed Debugging Assistant 'FatalExecutionEngineError'
Message=Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0x7664bee8, on thread 0x1eac0. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.'
Может ли кто-нибудь объяснить мне, что является причиной этого исключения?