Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
CZChunsheng Zhao04/04/2025
When operating on a large number of files using the SOLIDWORKS Document Manager API, I discovered a memory leak. The memory leak occurs at: Save(). How should this be addressed? Thanks!
Environment: SW2018SP5, SW2023SP5.
Example:
static void Main(string[] args) { static string sLicenseKey =""; string fileName = "Part.SLDPRT"; Process currentProcess = Process.GetCurrentProcess(); for (int i = 0; i < 1000;