#6737 closed Bugs (fixed)
static boost::filesystem::path crashes with Debug mode
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | filesystem |
Version: | Boost 1.49.0 | Severity: | Showstopper |
Keywords: | Cc: | raad@… |
Description
static boost::filesystem::path FilePath = "FilePath";
When filesystem::path is used with static, application crashes on runtime. Release mode works correct. Using VS2010. Boost compiled with debug, static, multithread.
It crashes with codecvt to wstring on xlocale.
Change History (9)
comment:1 by , 11 years ago
Status: | new → assigned |
---|
follow-ups: 3 4 comment:2 by , 11 years ago
I have apparently the same problem using this line:
const bfs::path AOSL_XSD_FILE = bfs::current_path() / "aosl.xsd";
With bfs namespace being boost::filesystem namespace.
Full source is available there: http://code.google.com/p/art-of-sequence/source/browse/tools/aosdesigner/Paths.cpp?r=d51b374de600ecc4f8829b5aeb9cfdcd50335096
Also, is it normal behavior that current_path() returns and empty string? Not sure if it's related.
comment:3 by , 11 years ago
Replying to mjklaim@…:
Actually, in my case the same problem occurs in Debug and Release mode too, using VS2010, with static/multithreaded boost libraries.
comment:4 by , 11 years ago
comment:5 by , 11 years ago
comment:6 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 by , 10 years ago
comment:8 by , 10 years ago
I am using 1.50 and vs2010 and am still seeing this problem. I may need to pull boost out of my project if I can't get past this very soon
comment:9 by , 6 years ago
Cc: | added |
---|
The problem also seems to involve other some uses of filesystem with static builds. As a first step to solving the problem, I'll expand testing to cover both your specific example and static builds in general.
Thanks,
--Beman