# Failed to generate code for MyGameEditor - error code: CrashOrAssert (3)

**URL:** <https://forums.unrealengine.com/t/failed-to-generate-code-for-mygameeditor-error-code-crashorassert-3/343448>\
**Category:** C++\
**Tags:** uht, unreal-engine, compile-error, question, CPP\
**Created:** [January 8, 2016, 6:57am UTC](https://forums.unrealengine.com/t/failed-to-generate-code-for-mygameeditor-error-code-crashorassert-3/343448 "2016-01-08T06:57:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felreach](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Felreach](https://forums.unrealengine.com/u/Felreach)\
**Post date:** [January 8, 2016, 6:57am UTC](https://forums.unrealengine.com/t/failed-to-generate-code-for-mygameeditor-error-code-crashorassert-3/343448/1 "2016-01-08T06:57:41Z")

</div>

You can mark this as solved.

Error message is not helpful when you make mistake in Interface header.

LogWindows : error : Windows GetLastError: The operation completed successfully. (0)

Error : Failed to generate code for MyGameEditor - error code: CrashOrAssert (3)

```
#pragma once    
#include "Interface.h"
#include "MyInterface.generated.h"

UINTERFACE(Blueprintable, MinimalAPI, meta = (CannotImplementInterfaceInBlueprint))
class UMyInterface : public UInterface
{
	GENERATED_UINTERFACE_BODY()
};

class UMyInterface // this should be IMyInterface
{
	GENERATED_IINTERFACE_BODY()

public:
	
};
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [January 8, 2016, 2:55pm UTC](https://forums.unrealengine.com/t/failed-to-generate-code-for-mygameeditor-error-code-crashorassert-3/343448/2 "2016-01-08T14:55:29Z")

</div>

Hey Mtrx-

The first line of your question says to mark as solved, could you explain what you did to fix the issue? This will help others who run into the same problem and are searching for information on how to fix it themselves. You can post as the answer and accept it yourself.

Thanks

---

<div class="post-metadata">

**Author:** ![Felreach](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Felreach](https://forums.unrealengine.com/u/Felreach)\
**Post date:** [January 8, 2016, 7:08pm UTC](https://forums.unrealengine.com/t/failed-to-generate-code-for-mygameeditor-error-code-crashorassert-3/343448/3 "2016-01-08T19:08:44Z")

</div>

The solution is in the code sample “// this should be IMyInterface”

When the header doesnt contain declaration of UMyInterface and IMyInterface with GENERATED\_UINTERFACE\_BODY() and GENERATED\_IINTERFACE\_BODY() bodies respectively, the UHT crashes, but doesnt output informative error message.
