#10 JDBMHashtable.dispose() does not work properly

open
nobody
None
5
2003-11-26
2003-11-26
Anonymous
No

Hi, I'm using the JDBMHashtable and its of great help
to me. Thanks!

There is a problem with JDBMHashtable.dispose().

If I dispose a hashtable and immediately afterwards ask
for a new hashtable from the recordmanager, the
disposed table is returned with all its old contents.

This is quite a big problem since the only other way to
empty a hashtable would be do iterate over all its
elements and delete them separately.

Cheers,
Andreas, University of Amsterdam (pauker@uni.de)

Discussion

  • Nobody/Anonymous

    simple test program that shows the bug

     
  • Alex Boisvert

    Alex Boisvert - 2003-11-26

    Logged In: YES
    user_id=982

    I confirm this is a problem with version 0.12 (which I
    assume you are using) and even with the current CVS version.
    There is no way to dispose of the Hashtable/HTree structure.

    I can fix it in the current CVS version. Do you need this
    to be back-ported to version 0.12 or can you upgrade to the
    CVS version?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks