# Defining a C++ Struct when a BP Struct exists

**URL:** <https://forums.unrealengine.com/t/defining-a-c-struct-when-a-bp-struct-exists/303698>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [January 12, 2015, 8:33am UTC](https://forums.unrealengine.com/t/defining-a-c-struct-when-a-bp-struct-exists/303698 "2015-01-12T08:33:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Allar](https://forums.unrealengine.com/u/Allar)\
**Post date:** [January 12, 2015, 8:33am UTC](https://forums.unrealengine.com/t/defining-a-c-struct-when-a-bp-struct-exists/303698/1 "2015-01-12T08:33:53Z")

</div>

Say you defined a blueprint struct, say of name FMapInfo, and have used it in various places. If you make a BlueprintType’d C++ Struct named FMapInfo and then load anything that references a FMapInfo in blueprint, UE4 will try to allocate a random amount of memory which is usually greater than 1000 TB.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [January 19, 2015, 4:26pm UTC](https://forums.unrealengine.com/t/defining-a-c-struct-when-a-bp-struct-exists/303698/2 "2015-01-19T16:26:27Z")

</div>

Hi ,

I tried to reproduce this with a simple setup in a new project and was unable to do so. Would you be able to provide some additional information about this issue?

- What version of the Engine are you using?
- Are you using the binary version installed by the Launcher, or did you build the Engine from source code?
- Could you provide examples of how you created the two structs, and how you are using them?
- Are you able to reproduce this in a new project, or does it only occur in your own project?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [February 26, 2015, 8:09pm UTC](https://forums.unrealengine.com/t/defining-a-c-struct-when-a-bp-struct-exists/303698/3 "2015-02-26T20:09:05Z")

</div>

Hi ,

We have not heard from you for some time. Do you still need help with this issue? I will be marking this issue as resolved for tracking purposes, but if you need any additional help please feel free to re-open it.
