On Nov 04, 2006, at 9:20 AM, Alfred Van Hoek wrote:
On Nov 4, 2006, at 10:22 AM, Norman Palardy wrote:
It probably needs to yield to RB which I why I'd do a plugin
Given that I just have read the nug digest version, where the same
problem is discussed, I will repost what I had said previously and
a general solution to the problem:
If you are being called by a callback the natural instinct is to
respond immediately. And if it requires updating of a GUI,
refreshing windows, or a lengthy calculation, then it will
interfere with REALbasic's runtime. Basically, you are blocking the
event loop if you are going to issue a lot of stuff, while in the
callback. So you do not want to do this.
Very nice stuff.
I have one question though.
Suppose the dylib is processing a huge amount of data and calling
back to RB to try and update the UI.
Isn't there still going to be an issue with the dylib not yielding to
RB and so the UI updates would still not occur ?
_______________________________________________
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>