realbasic-nug
[Top] [All Lists]

Re: Threads and Menus

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: Threads and Menus
From: Ron Benditt <rbenditt at alienapparatus dot com>
Date: Sat, 30 Jul 2005 22:50:47 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20050731022510 dot 584FABF979E at lists dot realsoftware dot com>
Ancient History in the Archives really is not very helpful for many
matters these days. Describe your problem and the usual OS and Rb
version info and we can deal with it in the "Here and Now". :)

Fair enough, Terry. I've got some code doing some things in a thread. During this code execution, there are a few things that a user could do that would halt the thread completely, such as click on a menu and hold it open without selecting anything, or click on a scrollbar and drag without letting go of it for a while. Basically what I've got going on in the thread is real-time audio processing stuff, so if a user was to interrupt the thread for a period of time by doing these things, the audio stops until the thread is allowed to continue - not very pretty. I do want the user to have the ability to select menu options during the running of the thread, but I just don't want the mere selecting of a menu to cause audio stuttering.

From the ancient history in the archives, it has been stated that this has to do with the way that RB does threading, and that a more modern approach using Cocoa rather than Carbon event monitoring would allow this to happen. I'm developing with v 5.5.5 for both OS X and Windows.

Thanks,

Ron Benditt
Alien Apparatus Company, Inc.
http://www.alienapparatus.com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>