I am testing out a Windows’s WPF kiosk app and what I observed was for every 2 hours or so, the app crashes with OOM exception. When I researched more into it, I found that GDI objects keep increasing and once the GDI objects crosses the default limit of 10000, app crashes. And one more observation was that the GDI objects of my WPF app increases only when I open Anydesk/Ultraviewer(basically a remote access platforms) inside the kiosk app and it doesn’t happen with any other application. Surprisingly, Anydesk’s GDI objects count also increases when I open it in inside the kiosk app.
I tried capturing the what kind of GDI objects are leaking in bot Anydesk and my kiosk app using GDIView tool and found that the GDI object types are constant, but the total GDI Objects keep on increasing linearly.
I am unable to figure out what exactly is causing the issue here. Please help!