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

My program has several hundred objects and each of them adds db records when a property of it changes. I do this adding db record stuff creating another thread for performance issues. But this time it causes following error:

    Exception of type 'System.OutOfMemoryException' was thrown.

I tried making this thread parameterized and passing thread itself as a parameter, and at the end of threaded method, I called Thread class's Abort() method to try free up memory. But nothing changed.

What should I do?