thread deadlock in BMenuField
|Reported by:||augiedoggie||Owned by:||nobody|
|Has a Patch:||no||Platform:||All|
While attempting to diagnose a problem in the BeAE program, I came across some odd behavior within BMenuField. The problem only occurs, on average, around 1 out of every 5 tries. Basically you have a BMenuItem attached to a BMenuField, which when selected, destroys the BMenuField object. The BMenuField destructor then gets stuck in wait_for_thread() waiting for the mouse tracking thread to die. I hope I've made that clear :)
I'm attaching some sample code which might explain it better. I assume that this code and the stuff from BeAE worked on BeOS, but, I no longer have it installed to test.