# Does FORCE\_ANSI\_ALLOCATOR=1 works on Windows?

**URL:** <https://forums.unrealengine.com/t/does-force-ansi-allocator-1-works-on-windows/452727>\
**Category:** Platform & Builds\
**Tags:** memory-management, build, unreal-engine, unrealbuildtool, question, CPP\
**Created:** [July 23, 2019, 8:11pm UTC](https://forums.unrealengine.com/t/does-force-ansi-allocator-1-works-on-windows/452727 "2019-07-23T20:11:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcleary](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mcleary/32/924204_2.png) [@mcleary](https://forums.unrealengine.com/u/mcleary)\
**Post date:** [July 23, 2019, 8:11pm UTC](https://forums.unrealengine.com/t/does-force-ansi-allocator-1-works-on-windows/452727/1 "2019-07-23T20:11:30Z")

</div>

I am trying to use the `FMallocAnsi` on Windows by adding the following to my game module

```
BuildEnvironment = TargetBuildEnvironment.Unique;
GlobalDefinitions.Add("FORCE_ANSI_ALLOCATOR=1");

```

However, after building the engine I always get a crash in `MessageContext.cpp`

```
FMessageContext::~FMessageContext()
{
	if (Message != nullptr)
	{
		if (UScriptStruct* TypeInfoPtr = TypeInfo.Get())
		{
			TypeInfoPtr->DestroyStruct(Message);
		}

		FMemory::Free(Message); // <<< Here
	}
}

```

I am not using anything extra, to reproduce this just checkout the 4.22 branch, build it, create a new C++ project and add the two lines depicted at the beginning of this post and build the project. When launching the engine will crash.

So, the main question, does the ANSI Allocator work on Windows?
