× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 11/20/2013 8:03 PM, James H. H. Lampert wrote:
In my JDBCR4-based project, I'm calling JDBC_GetMetaData (which
front-ends ResultSet.getMetaData(), and returns a ResultSetMetaData
object).

But I just realized that I'm not getting rid of the ResultSetMetaData
before getting one on another ResultSet.

Are you set up for enabling garbage collection in general?

I assume so, since you say "another memory leak", but just in case, and also for the archives ...

The ILE RPG Programmer's Guide has a section that talks about enabling Java garbage collection. There's also a wiki page in the RPG Cafe that has all the code from that section of the manual along with a sample program. (2 zip files, one with a savlib save file, and one with the source.)

Here's the URL for the wiki page:
https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/We13116a562db_467e_bcd4_882013aec57a/page/JNI%20utilities%20from%20the%20RPG%20Programmer%27s%20Guide

Here's a short URL for that: https://ibm.biz/BdxqxU

The sample program would be more interesting if it had also had a nested pair of beginObjGroup() and endObjGroup() in the loop.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.