Releasing memory pointing to a raster layer causes an error.
上次发布: June 30, 2020ArcGIS Runtime SDK
漏洞 ID 编号
BUG-000114021
已提交
May 16, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS Runtime SDK
找到的版本
100.2.1
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
The problem occurs when the raster dataset has been removed from the layer but the .NET garbage collection has not yet destroyed the raster object. To trigger the garbage collection in order to delete files, it may be necessary to call GC.Collect e.g.:
```
...
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
try
{
if (File.Exists(tifFile))
{
File.Delete(tifFile);
}
}
catch (Exception e)
{
// TODO...
}
...
```