Giter VIP home page Giter VIP logo

ax7z's Issues

Change DLL search behavior

Current behavior of loading 7z.dll:

  • Filename only (default DLL search path)
  • Path from HKCR
  • Path from HKLM

It is necessary to change the order and to eliminate current directory.

Enable to use per-user configuration

Store an ini file to AppData as default for per-user configuration.
Users can select to store an ini file to the folder to contain DLL as before.

Incorrect handling string to make ini file path

vector<char> is not correctly terminated with '\0'. It happens to work without application errors. Maybe pop_back() loop is to get directory part of the current module but this is contradictory to the code afterwards to append just ".ini". Anyway, the current ini file path, which is a spi path + ".ini", should be preserved.

Unify encoding in SQLite

SolidCacheDisk::SetCacheFolder() uses sqlite_open16() so that unintentional encoding conversion occurs query/insert for text. It causes cache records for archives whose paths contain non-ascii letters are available only until the next time of DLL loading. This leads advantages of persistent cache to very limited effects.

On the other hand, SolidCacheDisk()::Clear() uses sqlite_open() so that persistent cache records are kept.

It is necessary not only to unify open scheme but also to check "pragma encoding" in SolidCacheDisk()::InitDB().

Increase ISO C++ compliance

  • not-yet-declared template type parameter
  • In C++98, map::erase() doesn't return iterator
  • boost::thread::id via ...

Take a measure against a strange behavior of try_join_for

try_join_for() in Queue::CleanupAll() has the following behavior on my laptop.

  • try_join_for(boost::chrono::milliseconds(0) -> works but seems not to wait
  • try_join_for(boost::chrono::milliseconds(1) -> blocked without 1st image
  • try_join_for(boost::chrono::milliseconds(2) -> blocked completely
  • try_join_for(boost::chrono::milliseconds(3) -> works
  • try_join_for(boost::chrono::milliseconds(5) -> works
  • try_join_for(boost::chrono::milliseconds(100) -> works
  • try_join_for(boost::chrono::milliseconds(500) -> works but too slow

Maybe instability of steady_clock() on Win32 affects it. (see https://svn.boost.org/trac/boost/ticket/8323 )

Instead try_join_until(system_clock::now() + d) might be stabler.

Not work on XP

reported by http://8904.teacup.com/yak_ex/bbs/135

There are 2 problems.

Here are the corresponding solutions.

  • Specify _WIN32_WINNT is 0x0501 (XP) explicitly.
  • Update VS 2012

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.