# HG changeset patch # User Chris Cannam # Date 1307542673 -3600 # Node ID c83cc68483ea15478bd72e61b5ec8502c56fd7c5 # Parent a6a71d1c7eb79c60c834156624b76c31f6213770 Close file (to flush buffer) before reopening diff -r a6a71d1c7eb7 -r c83cc68483ea testapp/Loader.cpp --- a/testapp/Loader.cpp Mon Mar 28 12:45:26 2011 +0100 +++ b/testapp/Loader.cpp Wed Jun 08 15:17:53 2011 +0100 @@ -35,6 +35,7 @@ buffer = f.read(bufsiz); tf.write(buffer); } + tf.close(); std::cerr << "unpacked, importing..." << std::endl; store->import("file://" + tf.fileName(), BasicStore::ImportPermitDuplicates, // fastest mode