# Steam callback c++ occuring twice.

**URL:** <https://forums.unrealengine.com/t/steam-callback-c-occuring-twice/439685>\
**Category:** Platform & Builds\
**Tags:** steamworks, unreal-engine, question, CPP\
**Created:** [December 17, 2018, 11:27pm UTC](https://forums.unrealengine.com/t/steam-callback-c-occuring-twice/439685 "2018-12-17T23:27:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![KevinDuguay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KevinDuguay](https://forums.unrealengine.com/u/KevinDuguay)\
**Post date:** [March 7, 2023, 7:42pm UTC](https://forums.unrealengine.com/t/steam-callback-c-occuring-twice/439685/4 "2023-03-07T19:42:15Z")

</div>

This might help:

> [@STEAM\_CALLBACK\_MANUAL being deleted by Garbage Collection](https://forums.unrealengine.com/t/steam_callback_manual-being-deleted-by-garbage-collection/475272):
>
> I’m implementing some Steam API callbacks, manually because the automated STEAM\_CALLBACK is triggering twice. The STEAM\_CALLBACK\_MANUAL is only calling once when registering a function, but it is removed after about 30 seconds by GC. I tried putting in a wrapper class, same results. In the functions, the logout shows it is firing until it is deleted. I tried SharedPtr as well without using the macro. I just need to know how to prevent Declaration and assignment code: SteamworksGIS.h STEAM\_CA…

Use STEAM\_CALLBACK\_MANUAL instead

---

_[View the full topic](https://forums.unrealengine.com/t/steam-callback-c-occuring-twice/439685)._
