<!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.2900.3395" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=130223609-30092008><FONT face=Arial size=2>Hi
all,</FONT></SPAN></DIV>
<DIV><SPAN class=130223609-30092008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=130223609-30092008><FONT face=Arial size=2>The ODBC trials and
tribulations continue!</FONT></SPAN></DIV>
<DIV><SPAN class=130223609-30092008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=130223609-30092008><FONT face=Arial size=2>I have a test method
as such:</FONT></SPAN></DIV>
<DIV><SPAN class=130223609-30092008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=130223609-30092008>
<P align=left><FONT face=Arial size=2>get_tables() -> </FONT></P>
<P align=left><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008>
</SPAN>odbc:start(),</FONT></FONT></P>
<P align=left><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008> </SPAN>{ok, Ref} =
odbc:connect("DSN=HWHU;UID=<SPAN class=130223609-30092008>auid</SPAN>;PWD=<SPAN
class=130223609-30092008>apwd</SPAN>", [{scrollable_cursors,
off}]),</FONT></FONT></P>
<P align=left><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008> </SPAN>{selected, ColNames, Data} =
odbc:sql_query(Ref, "select * from<SPAN class=130223609-30092008>
Test</SPAN>"),</FONT></FONT></P>
<P><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008>
</SPAN>Data.</FONT></FONT></P></SPAN></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008>N</SPAN>ow I can execute the query and the entire table is brought back - great that's what I expect.</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>A<SPAN class=130223609-30092008>lso rather
crudely it just returns the whole lot as Data (this is just a test after
all).</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=130223609-30092008>The problem I
have is that after the method returns, even though I have not assigned Data to
anything (i.e. I just want it to echo to the screen for a visual sanity check)
the erlang shell still seems to be making use of the memory?
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=130223609-30092008>How does
garbage collection work in this instance?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008>Thanks,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=130223609-30092008>Dan</SPAN></FONT></FONT></DIV>
<DIV><BR></DIV><!--eMS5.0.5.D29M.9Y.2008-->
<DIV> </DIV><pre>
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority
This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The
Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
www.rbs.com
www.rbs.com/gbm
www.rbsgc.com
***********************************************************************************
</pre></BODY></HTML>