<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5346.5" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=484114218-13062006>I believe I am
experiencing a memory leak in MapInfo tab layers using the C API (called by C#
code).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=484114218-13062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=484114218-13062006>I am writing points
to a MapInfo tab file. If I don't add the point object to the OgrFeature, there
is no leak. As soon as I add the point (or any geometry), the memory leak
occurs.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=484114218-13062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=484114218-13062006>If I choose a
Shapefile datasource, there is no leak.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=484114218-13062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=484114218-13062006>I took a quick look
at the mitab source, but saw nothing obvious.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=484114218-13062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=484114218-13062006>Could there be
something I am doing wrong that is leading to this problem with MapInfo
files?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=484114218-13062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=484114218-13062006>Another test that I
did to confirm was to use '<FONT size=2>OGR_F_SetGeometry</FONT>' instead of
'<FONT size=2>OGR_F_SetGeometryDirectly' (and destroy the original geometry
myself) and the same leak occurs.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=484114218-13062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=484114218-13062006>Cheers,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=484114218-13062006>Richard</SPAN></FONT></DIV></BODY></HTML>