.NET System.OutOfMemoryException and AppDomains

I have a plugin manager that runs a plugin that connects to a FoxPro database through an OLE DB ADO.NET provider.

On one client site, connections open and close without issue but on another client site it gets stuck at 'connection.Open ();' and inside a couple of seconds are allocated for 1 GB of memory.

Within one minute after that, another 1 GB is allocated and a System.OutOfMemoryException is thrown.

The plugin manager unloads the AppDomain and continues.

Where would I start to debug this?

+2


source to share


1 answer


Turn on "debug external code" using the Debug options, then navigate to the appropriate code and see what it does. You might be able to use a memory profiler (I like DotTrace) to get a clearer idea of ​​what is slowing it down.



+3


source







All Articles