Reputation: 461
I have a plugin manager that launches a plugin which connects to a FoxPro database through the ADO.NET OLE DB provider.
At one client site connections are opened and closed without any problems but at another client site, it gets stuck in 'connection.Open();' and within a couple of seconds over 1GB of memory is allocated.
Within one minute after that another 1GB is allocated and System.OutOfMemoryException is thrown.
The plugin manager unloads the AppDomain and continues.
Where would I start debugging this?
Upvotes: 2
Views: 598
Reputation: 7604
Enable 'debug external code' hrough the Debug options and then step through to the code in question and watch what it does. You might be able to use a memory profiler (I like DotTrace) to build a clearer picture of what is slowing it down.
Upvotes: 3