Opened 13 years ago
Closed 13 years ago
#3571 closed Bugs (wontfix)
mapped_file_source, reopening fails with exception (Windows XP)
Reported by: | Owned by: | Jonathan Turkanis | |
---|---|---|---|
Milestone: | Boost 1.41.0 | Component: | iostreams |
Version: | Boost 1.40.0 | Severity: | Problem |
Keywords: | mapped_file | Cc: |
Description
i can confirm the bug described in this message:
http://article.gmane.org/gmane.comp.lib.boost.user/23583
i.e. the reopening of the mapped_file_source fails with std::exception, what() = "failed mapping view: access denied" is thrown.
(here: Windows xp / Mingw gcc 4.2.1 / boost 1.40.0)
Attachments (1)
Change History (3)
by , 13 years ago
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
sorry, it's not a bug.
a) you cannot map beyond the end of the file (obvious)
b) (on windows), apparently you can not map with offset to the last 64k of the file, if they are not completely filled (file ends before complete 64k are filled).
so, b was the problem (file was between 64k and 128k large).
update:
Creating a new instance of mapped_file_source (instead of .open after .close), this works!
(so, is it a bug?)