Open Gama11 opened 5 years ago
HXCPP issue at https://github.com/HaxeFoundation/hxcpp/issues/845.
Looks like we receive THREAD_TERMINATED event from cpp.vm.Debugger
with threadNumber :-1
.
So it's a bug or undocumented behaviour:
https://api.haxe.org/cpp/vm/Debugger.html#setEventNotificationHandler
When running the following code (thanks for the code example @gepatto) and pressing Space to open a file dialog, a second thread appears in the callstack view:
When the file dialog is closed, the thread should terminate, but the UI doesn't seem to update. I added some traces and found the following order of events:
So it looks like we don't get a valid thread ID on exit. Possibly a bug in hcxpp (@nulld)?