OutOfMemoryException 结合另一个异常

OutOfMemoryException combined with another exception

我正在调查内存问题,发现这是今天的日志:

System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Exception of type 'System.OutOfMemoryException' was thrown.Couldn't store <15.02.2017 00:00:00> in period Column. Expected type is String. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

以前的日志有 OutOfMemoryException 没有

的内部异常

Couldn't store <15.02.2017 00:00:00> in period Column. Expected type is String.

是一个导致另一个,还是与 OutOfMemoryException 同时抛出此异常只是随机的?我不是在问如何修复错误,而是在问为什么它们似乎捆绑在这个日志语句中而不是其他日志语句中。任何 explanations/references/ideas?

顺便说一下,这是一个 .Net Framework 应用程序 运行 作为 Windows 服务在具有 16 GB RAM Windows 2012 服务器上 运行 一个大计算,所以有很多事情可以改进。我的任务是改进代码,这样一开始就不会占用太多内存,我希望能正确理解上面的日志语句。

我认为在创建 ArgumentException 对象期间存在 OutOfMemoryException,因此 AggregateException