# Component Visualizers breaks after compiling and restarting the Unreal editor

**URL:** <https://forums.unrealengine.com/t/component-visualizers-breaks-after-compiling-and-restarting-the-unreal-editor/484960>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 15, 2021, 10:13pm UTC](https://forums.unrealengine.com/t/component-visualizers-breaks-after-compiling-and-restarting-the-unreal-editor/484960 "2021-06-15T22:13:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErrorX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ErrorX](https://forums.unrealengine.com/u/ErrorX)\
**Post date:** [June 15, 2021, 10:13pm UTC](https://forums.unrealengine.com/t/component-visualizers-breaks-after-compiling-and-restarting-the-unreal-editor/484960/1 "2021-06-15T22:13:13Z")

</div>

I did this [tutorial](https://www.ue4community.wiki/legacy/component-visualizers-xaa1qsng) and also tried this [Git repository](https://github.com/sutheim/UE4-ComponentVisualizer-Example) and they both have the same problem.  
But when I add a Component Visualizer to my project and I compile it in the editor and then restart the editor.  
The editor crashes and I get this error:

> Assertion failed: Object-\>HasAnyFlags(  
> RF\_BeginDestroyed ) &&  
> !Object-\>HasAnyFlags(  
> RF\_FinishDestroyed )

The weird part is when I compile the project in Visual Studio I can open the editor without any errors.

I’m pretty new to Unreal C++, but does Unreal Editor compiles differently than the Visual Studio one? Is there a setting or something so that Editor also build Editor only code?
