Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] std::bad_alloc during dll initialization when migrating to filesystem v3
From: Richard Ulrich (richi_at_[hidden])
Date: 2011-04-18 10:53:20

> Wild guess: are you linking static boost::filesystem with each of your
> DLLs, or dynamic boost::filesystem? Bad Things can happen with
> multiple static instances of the same library in the same process.

If I link the filesystem lib as dll, then it works.
Thanks for the hint.

Should I file a bug, or is there a trick to suppress multiple

We have used static versions of the boost libs in different dll's for
years, and never ran into similar problems.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at