How to debug multi-threading problems Posted by hh on 2018-08-22 15:40 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.