Under C#, (Visual Studio 2010 32-bit) creating PNG or SVG output does not release TrueType file handles when mapObject is disposed. This problem presented itself using MapServer mapscript code under Windows IIS 7.5, it was tracked down to exhaustion of file handles; a work around was to "recycle" the worker processes to force file handle closure.
The heart of the problem is demonstrated by a small C# program that I can send, please email me (firstname.lastname@example.org) if you'd like it sent to you as a ZIP file including the VS2010 solution file and all DLLs.
This is very similar to a ticket closed six years ago, #2013 .
Fix handling object ownership in msLoadMapFromString (#4551)
@szekerest should I backport this one to branch-6-2 ?
That might be reasonable
my bad, this one was already in 6.2. sorry for the noise
Thomas, thanks for taking a look at the issue.
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
From: Thomas Bonfort [mailto:email@example.com]
Sent: Saturday, April 13, 2013 4:46 AM
Cc: Anzel, Phil - NRCS, Fort Collins, CO
Subject: Re: [mapserver] MapObject Dispose does not release TrueType font file handles (MapServer 6.2) (#4551)
Reply to this email directly or view it on GitHubhttps://github.com/mapserver/mapserver/issues/4551#issuecomment-16331086.