Hey everyone!
I'm having a weird error when debugging the TwitchNotifiy utility that Martins (mmozieko) wrote and I'm very curious as to what triggers it.
The error is as follows:
onecoreuap\base\diagnosis\platform\notifications\developer\util.cpp(174)\wpnapps.dll!00007FFBBFC64E8C: (caller: 00007FFBBFC64B35) ReturnHr(1) tid(3168) 80070490 Element not found. onecoreuap\base\diagnosis\platform\notifications\developer\basenotification.cpp(36)\wpnapps.dll!00007FFBBFC64B52: (caller: 00007FFBBFC6123E) LogHr(1) tid(3168) 80070490 Element not found.
The error appears after either one of the following functions was called:
WindowsToast_Create() WindowsToast_ShowSimple()
Now, in the beginning, that error didn't affect anything. The notifications were still being displayed regardless. However, whenever I try adding something to the program like a message box, the notifications start flooding my action center as soon as I interact with it.
I'd also like to emphasize that this undefined behavior only occurs on Windows 11. On Windows 10 everything runs smoothly.
Is there anything special I need to add to the source code in order to be complaint with Windows 11 as well?