[haiku-3rdparty-dev] Re: Modal dialogs

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Wed, 05 Jun 2013 09:39:37 +0200

Hi,

On 05.06.2013 03:39, Matthew Allen wrote:
It would:
- Create a semaphore
- Show the dialog
- Wait for the semaphore to be deleted while blocking the calling thread (and 
updating the window underneath occasionally)
- When the user clicks a button the semaphore is deleted
- Dialog is removed
- Control returns to main application.

So I tried this in Haiku but the app just hangs. No messages or events are 
processed.

Basically, this is exactly how BAlert works. If your code works in BeOS, then it's probably a Haiku-bug that it doesn't work in Haiku. You could look at the BAlert code...

http://cgit.haiku-os.org/haiku/tree/src/kits/interface/Alert.cpp#n251

... and narrow down the problem. Please file a ticket if you believe this to be a bug in Haiku.

Best regards,
-Stephan


Other related posts: