I've been working with Ben Bai on the OOM exception described elsewhere in this forum. As part of that process, Ben has provided some custom build binaries that dump resources used internally by the TG Map component when the OOM occurs, and using this we believe there is a solution that has been integrated with your code base. Ben provided a final diagnostic dump build to try on our test sites to try to confirm the fix, or get another dump should it repro again (sometimes takes weeks). He also indicated that the prod build wasn't updating correctly, so he sent me an update of the prod binaries so that we can begin acceptance testing in parallel while confirming the fix. Both of these are to my knowledge based on your current code base. And both of these last 2 builds exhibit the problem I will describe below. However, I can't give you a version number because your current Prod Build 9.0.0.142 still contains binaries built on 11/11/15, long before the changes Ben provided for our fix. I reported this first to him, but he is working on another project now and suggested I post here, so I'm including all this for your background. If you need more specifics about the changes and code base used for those builds, you will need to contact Ben directly.
Also, I really need an official Prod build containing the changes prompted by the OOM investigation.
This is the content describing our current issue...
The last 2 ThinkGeo Map builds (built early December and 12/8) appear to have breaking changes regarding feature access in static layers. The following code works on older builds, but fails on the last update you gave me for the diagnostic dumps, and on the prod build you sent me earlier today. In the code below, the layer's shape file does have the indicated "field" (column name) in it's DB file along with associated values. The call to layer.FeatureSource.GetAllFeatures for that columnName returns 369 features. But then the subsequent call to get the column value using feature.ColumnValues[columnName] throws KeyNotFoundException. And in fact, when I look at column values, the count is (always) zero for all 369 features, even though I know for a fact that there should be values for that column. And of course there is also the fact that this code worked on earlier versions of DesktopEdition. With the same shape files and the same code, the previous drop you (Ben) gave me (that generated the OOM dump files I sent you last) worked without issue.
layer.Open( );
Collection<feature> features = layer.FeatureSource.GetAllFeatures( new[] {columnName} );
foreach( Feature feature in features )
{
cachedValueStyle.ValuesCache.Add( feature.Id, feature.ColumnValues[columnName] );
}
layer.Close( );</feature>