ThinkGeo.com    |     Documentation    |     Premium Support

'Exception of type 'System.OutOfMemoryException' was thrown' issue

Hi,
I am getting that issue whenever adding features to the layer.

I have a doubt, Is InMemoryFeatureLayer will add N no of features or any limitations on it.
While adding on More than 7,46,000 features i am getting issue on loop.

Can you please give me some suggestions for resolving this issue.

Thanks,
Riyaz

Hi Riyaz,

I guess that’s because the data touch the limitation of the collection, it looks the limitation is 2GB: https://blogs.msdn.microsoft.com/joshwil/2005/08/10/bigarrayt-getting-around-the-2gb-array-size-limit/

You can try to put your data into multiply InMemoryFeatureLayers, or you can put them into some data type for example shape file, and build index for them. So not all feature will be added into map in the same time.

Regards,

Ethan