I'm creating an addin application for SolidWorks. Every time when i process a part physical memory heaps up resulting in termination of SolidWorks throwing a message "SolidWorks is running out of memory. It's terminating now". How can recover my used memory.
Folling are the memory consuption of SolidWorks for successive processing of same part. GDI objects used nore or less same but the memory consumption increases rapidly.

Hey Balaji,
I've experienced this before and found that it was due an unsupported graphics card. In my case I had no issues running SWX 2012 but the memory leak occured only in SWX 2013.
Run Solidworks Rx and check the status of your graphic card. If the driver is not up to date, download the latest one. That should solve it.
Also, try running Solidworks in Open GL mode and see how that goes for you.
Suraj