MapObject Dispose does not release TrueType font file handles (MapServer 6.2) #4551

Closed
PhilAnzel opened this Issue Dec 26, 2012 · 5 comments

Projects

None yet

3 participants

@PhilAnzel

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 (phil.anzel@ftc.usda.gov) 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 .

@szekerest szekerest was assigned Dec 27, 2012
@szekerest
Member

closing

@szekerest szekerest closed this Jan 5, 2013
@mkofahl mkofahl pushed a commit to faegi/mapserver that referenced this issue Apr 9, 2013
@szekerest szekerest Fix handling object ownership in msLoadMapFromString (#4551) 1192111
@tbonfort
Member

@szekerest should I backport this one to branch-6-2 ?

@tbonfort tbonfort reopened this Apr 13, 2013
@szekerest
Member

That might be reasonable

@tbonfort
Member

my bad, this one was already in 6.2. sorry for the noise

@tbonfort tbonfort closed this Apr 13, 2013
@PhilAnzel

Thomas, thanks for taking a look at the issue.

  • Phil Anzel
    USDA/NRCS contractor – Team Vistronix

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:notifications@github.com]
Sent: Saturday, April 13, 2013 4:46 AM
To: mapserver/mapserver
Cc: Anzel, Phil - NRCS, Fort Collins, CO
Subject: Re: [mapserver] MapObject Dispose does not release TrueType font file handles (MapServer 6.2) (#4551)

my bad, this one was already in 6.2. sorry for the noise


Reply to this email directly or view it on GitHubhttps://github.com/mapserver/mapserver/issues/4551#issuecomment-16331086.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment