Opened 12 years ago
Last modified 7 years ago
#4346 reopened Bugs
Boost pool's not comaptible with Microsoft memory leak detection
| Reported by: | Owned by: | Chris Newbold | |
|---|---|---|---|
| Milestone: | Boost 1.61.0 | Component: | pool |
| Version: | Boost 1.60.0 | Severity: | Regression |
| Keywords: | Cc: | serg_joker@… |
Description
Boost pool classes not compatible with Microsoft memory leak detection.
You can include that lines in code: #ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#endif #include <crtdbg.h> #include "boost\pool\pool_alloc.hpp"
We can solve problem using two ways:
- Rename all malloc & free methods
- Add #pragma push_macro, #undef and #pragma pop_macro lines. Also add alternative names for malloc and free methods
Attachments (1)
Change History (6)
by , 12 years ago
| Attachment: | pool.patch added |
|---|
comment:1 by , 12 years ago
| Component: | None → pool |
|---|---|
| Owner: | set to |
comment:2 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 12 years ago
comment:4 by , 7 years ago
| Milestone: | Boost 1.43.0 → Boost 1.61.0 |
|---|---|
| Resolution: | fixed |
| Severity: | Problem → Regression |
| Status: | closed → reopened |
| Version: | Boost 1.44.0 → Boost 1.60.0 |
Reproduced again. MSVC 2015 Update 1 boost 1.60
Looks like #pragma push_macro/undef/pop_macro stuff was eliminated
comment:5 by , 7 years ago
| Cc: | added |
|---|
Note:
See TracTickets
for help on using tickets.

(In [63009]) Protect Boost.Pool from evil #defines of malloc and free. Fixes #4346.