Changeset 21914


Ignore:
Timestamp:
2010-04-20T11:18:20+12:00 (12 years ago)
Author:
xiao
Message:

force garbage collection after closing database on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/branches/stable_gs3/greenstone3/src/java/org/greenstone/gsdl3/util/GDBMWrapper.java

    r18663 r21914  
    131131    try {
    132132      if (db_ != null) {
    133     db_.close();
    134     db_ = null;
     133       db_.close();
     134       db_ = null;
     135        if(System.getProperty("os.name").startsWith("Windows")) {
     136            //Hack: force Windows to let go of the gdb file
     137            System.gc();
     138        }
    135139      }
    136140    } catch (GdbmException e) {
Note: See TracChangeset for help on using the changeset viewer.