#12286: Menus seem to be leaking ports
----------------------------------+----------------------------
Reporter: ttcoder | Owner: axeld
Type: bug | Status: new
Priority: high | Milestone: R1/beta1
Component: Kits/Interface Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+----------------------------
Comment (by jackburton):
Replying to [comment:16 bonefish]:
Replying to [comment:13 jackburton]:
then, since it changed the code to use MouseDownThread(), which callsI guess commit 285b7163ad41e00841d0dc28b48fe10902a350bc is the culprit
an addition.
I don't see the "instead". The use of `MouseDownThread` just seems to be
(ExpandoMenuBar), so before changing the kill_thread() to
Replying to [comment:14 jackburton]:
MouseDownThread is also used in Tracker (DialogPane) and Deskbar
itself invokes the destructor. With `kill_thread()` it commits suicide,
`wait_for_thread()` is not correct either, since in that case the thread
be checked as well before changing anything.
As is the class is simply badly designed. And yes, its other uses should
ports, too ?
@Bonefish: Is there no way to force kill_thread() to kill the used
docs/bebook/TheKernelKit_ThreadsAndTeams.html#kill_thread documented in
No. `kill_thread()` is even [https://www.haiku-os.org/legacy-