# How to tell unreal's reflection system to ignore some part of code

**URL:** <https://forums.unrealengine.com/t/how-to-tell-unreals-reflection-system-to-ignore-some-part-of-code/361666>\
**Category:** Rendering\
**Tags:** garbage-collector, reflection, unreal-engine, UE4, question, CPP\
**Created:** [June 22, 2016, 8:30am UTC](https://forums.unrealengine.com/t/how-to-tell-unreals-reflection-system-to-ignore-some-part-of-code/361666 "2016-06-22T08:30:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Korcan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Korcan](https://forums.unrealengine.com/u/Korcan)\
**Post date:** [June 22, 2016, 8:30am UTC](https://forums.unrealengine.com/t/how-to-tell-unreals-reflection-system-to-ignore-some-part-of-code/361666/1 "2016-06-22T08:30:36Z")

</div>

Hi,

Anybody knows how to tell unreal’s reflection system to ignore some part of code? Because unreal gc system destroys my third party library variables and it crashes unreal.

Same as this link

> **[How can I resolve a crash with opencv::FindContour()?](https://forums.unrealengine.com/questions/36777/crash-with-opencvfindcontour.html)**
>
> Hi There. I’m working on a project with opencv 2.4.9. I linked the library and all the functions work fine exept for cv::FindContour(). The exeption thrown is “Access violation writing location 0x00000010”. Threads related to this problems exist...

Best,  
Korcan

---

<div class="post-metadata">

**Author:** ![Korcan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Korcan](https://forums.unrealengine.com/u/Korcan)\
**Post date:** [June 22, 2016, 9:49am UTC](https://forums.unrealengine.com/t/how-to-tell-unreals-reflection-system-to-ignore-some-part-of-code/361666/2 "2016-06-22T09:49:13Z")

</div>

it only works for UPROPERTY like objects. For that reason its not working on thirdparty libs and GC destroys lib variables.
