# Cannot hot reload a C++ Secondary Game module

**URL:** <https://forums.unrealengine.com/t/cannot-hot-reload-a-c-secondary-game-module/1330985>\
**Category:** C++\
**Tags:** unreal-engine, hot-reload\
**Created:** [October 13, 2023, 1:54am UTC](https://forums.unrealengine.com/t/cannot-hot-reload-a-c-secondary-game-module/1330985 "2023-10-13T01:54:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![olivier.perrault](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@olivier.perrault](https://forums.unrealengine.com/u/olivier.perrault)\
**Post date:** [October 13, 2023, 1:54am UTC](https://forums.unrealengine.com/t/cannot-hot-reload-a-c-secondary-game-module/1330985/1 "2023-10-13T01:54:58Z")

</div>

This is still not working, I have added code in second game module (not a plugin), and cannot hot reload when compiling with lower right icon, or VS studio.

When I go in my Binaries/Win64 folder, I found that new dll have been created, however the old one is locked and still being used instead.

The only way I’ve managed is hitting recompile, in the Tools \> Debug \> Modules window. This will require me to recompile a second time. And also pull out that stupid window every time.
