Just to clarify, it's technically not a leak - the reader's destructor does call Close. The problem occurs ifyou use .NET code in your web tier. The managed readers in the web tier don't get garbage collected right away, and this can lead to a buildup of cached readers on the serve (this was the "leak" reported in the ticket). Once GC kicks in the web-tier proxy readers are destroyed / closed, and this also cleans up the corresponding readers on the server.
Nevertheless, it's still good practice to call Close as soon as you're done with the reader. I don't know of any API which can enumerate the open readers.
Walt
________________________________________
From:
[hidden email] [
[hidden email]] On Behalf Of Zac Spitzer [
[hidden email]]
Sent: Friday, May 22, 2009 11:58 PM
To: MapGuide Internals Mail List
Subject: [mapguide-internals] detecting dangling feature readers
just following up on this ticket
http://trac.osgeo.org/mapguide/ticket/989it's there any method available to enumerate open readers
to detect these kind of leaks?
--
Zac Spitzer -
http://zacster.blogspot.com+61 405 847 168
_______________________________________________
mapguide-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-internals_______________________________________________
mapguide-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-internals