# Conflict with \_CRTDBG\_MAP\_ALLOC (Visual Studio)

**URL:** <https://forum.juce.com/t/conflict-with--crtdbg-map-alloc-visual-studio/6040>\
**Category:** Windows\
**Created:** [December 17, 2010, 2:06pm UTC](https://forum.juce.com/t/conflict-with--crtdbg-map-alloc-visual-studio/6040 "2010-12-17T14:06:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)\
**Post date:** [December 17, 2010, 4:36pm UTC](https://forum.juce.com/t/conflict-with--crtdbg-map-alloc-visual-studio/6040/7 "2010-12-17T16:36:22Z")

</div>

> [@jules](#):
>
> I’ve always used the debug allocator, but only by calling the \_dbg\_malloc directly. #defining malloc is just asking for trouble!

I hear you but thats how MSVC implemented it. Maybe we can rename your functions, i.e. HeapBlock::jmalloc() ?

---

_[View the full topic](https://forum.juce.com/t/conflict-with--crtdbg-map-alloc-visual-studio/6040)._
