Forum: System Workbench for STM32

How to debug multi-threading problems

You appear to be creating but not destroying your dialog box; maybe this is your memory issue?
I’m not familiar with the Segger windowing stuff but maybe ending the dialog from another thread (your usb thread) is not correct.