Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

memory problem during query  RSS feed

Kristof Camelbeke
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question concerning the performance of a database query.
The problem is as follows :
I have a jList with items... When the user selects one, a query is made on the database to do a selection of fields which are then displayed in a jTable (I use an AbstractTableModel to obtain this).
Everything works fine except when I use the application for a while (i.e. selecting
about 10 or more elements from the jList) my memory-usage is boosting up and doesn't go down !
After a while I receive an "out of memory error" and the whole thing stops working..
Is there a way to restore the memory used after a database-query or does this mean that there is
something wrong in my program ??
Here is the code to the event which's starts the query ...
Could anybody give me some help ..

[ Edited by Dave to format code ]
[ March 26, 2002: Message edited by: David O'Meara ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!