# Pointer causing editor crash

**URL:** <https://forums.unrealengine.com/t/pointer-causing-editor-crash/335798>\
**Category:** C++\
**Tags:** unreal-engine, crash, bug-report, editor, CPP, question\
**Created:** [October 19, 2015, 3:04pm UTC](https://forums.unrealengine.com/t/pointer-causing-editor-crash/335798 "2015-10-19T15:04:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuelhely](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@samuelhely](https://forums.unrealengine.com/u/samuelhely)\
**Post date:** [October 19, 2015, 3:04pm UTC](https://forums.unrealengine.com/t/pointer-causing-editor-crash/335798/1 "2015-10-19T15:04:27Z")

</div>

Hello everyone,

I’ve been following the slate tutorial in wiki.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

But when I add this line

```
MenuStyle = &MenuStyles::Get().GetWidgetStyle<FGlobalStyle>("Global");

```

in my project and press play the editor crash. My code is practically the same as the tutorial.

The crash reporter window says:  
“Assertion failed: IsValid() [File:C:\Program Files\Epic Games\4.9\Engine\Source\Runtime\Core\Public\Templates\SharedPointer.h] [Line: 697]”

There is no build errors in Visual Studio, I believe that’s something with the pointers.

In Diagnostics.txt says ‘Source context from “menututorial/source/menututorial/menustyles.cpp”’  
Diagnostics

Can anyone help me?

Sorry for my English

Thanks!

---

<div class="post-metadata">

**Author:** ![Puca21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Puca21](https://forums.unrealengine.com/u/Puca21)\
**Post date:** [February 22, 2016, 6:12pm UTC](https://forums.unrealengine.com/t/pointer-causing-editor-crash/335798/2 "2016-02-22T18:12:22Z")

</div>

I have the exact same problem as this. Did you get it fixed by any chance?

---

<div class="post-metadata">

**Author:** ![samuelhely](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@samuelhely](https://forums.unrealengine.com/u/samuelhely)\
**Post date:** [February 23, 2016, 9:04pm UTC](https://forums.unrealengine.com/t/pointer-causing-editor-crash/335798/3 "2016-02-23T21:04:12Z")

</div>

I dont remember how I got it fixed, it just started working again. I remember changing something inside the GameMode. If you’re doing the same tutorial, download the finished project and take a look in the GameMode code, because is not the same like the tutorial.

---

<div class="post-metadata">

**Author:** ![Bino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bino](https://forums.unrealengine.com/u/Bino)\
**Post date:** [February 23, 2016, 9:13pm UTC](https://forums.unrealengine.com/t/pointer-causing-editor-crash/335798/4 "2016-02-23T21:13:42Z")

</div>

Quickly going through that tutorial. Did you call Initialize first? _FMenuStyles::Initialize();_
