At 05:45 PM 10/10/2006, you wrote:
> Now I get a StackOverflowException in that callback function.
> Any ideas on the reason why?
RB is not thread safe.
Yuck, that's fairly awful.
Can you suggest anything to help with the core problem, which is
getting an interface element (like a text box or similar) to update
on the screen as a result of a callback WHILE a function is waiting
for a dylib to return?
Chronologically, it seems to be like this:
Call dylib function
Callback 1 comes in, adds a row to a listbox
Callback 2 comes in, adds a row to a listbox
Callback 3 comes in, adds a row to a listbox
....
dylib returns
Rows get added
I'm not sure if the callbacks get called before the return or after
the return of the dylib function. If before, then it's something in
RB that could be programmed to force updating of the screen? If
after, then what are some suggestions on how to get them coming in before?
Garth Hjelte
Sampler User
_______________________________________________
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>
From Wed 11 Oct 2006 21:24:35 +0200
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id BB044DADBA2; Wed, 11 Oct 2006 12:24:54 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on realxserve.local
X-Spam-Level:
X-Spam-Status: No, score=-2.4 required=4.5 tests=AWL,BAYES_00 autolearn=ham
version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
by xmail.realsoftware.com (Postfix) with ESMTP id 2D561DADB98;
Wed, 11 Oct 2006 12:24:52 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id 9501E15890BF; Wed, 11 Oct 2006 14:24:42 -0500 (CDT)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de
[80.67.18.16])
by lists.realsoftware.com (Postfix) with ESMTP id 4463E15890B2
for <realbasic-plugins at lists dot realsoftware dot com>;
Wed, 11 Oct 2006 14:24:37 -0500 (CDT)
Received: (qmail 28336 invoked from network); 11 Oct 2006 19:24:35 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 94 dot
51])
(envelope-sender <support at monkeybreadsoftware dot de>)
by smtprelay04.ispgateway.de (qmail-ldap-1.03) with SMTP
for <realbasic-plugins at lists dot realsoftware dot com>;
11 Oct 2006 19:24:35 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <7 dot 0 dot 1 dot 0 dot 2 dot 20061011124927 dot 0a9b5070 at
chickensys dot com>
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Wed, 11 Oct 2006 21:24:35 +0200
Message-ID: <1hn2bfz dot 1l06h7g10s39sdM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.7 (Mac OS X version 10.4.8)
Subject: Re: Callbacks from dylibs
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com
Garth Hjelte <garth at chickensys dot com> wrote:
Can you suggest anything to help with the core problem, which is=20
getting an interface element (like a text box or similar) to update=20
on the screen as a result of a callback WHILE a function is waiting=20
for a dylib to return?
Well, if you just do a Realbasic event in a class and call it inbetween,
it should work. Everything must of course run on the main thread.
Gru=DF
Christian
--=20
Around eleven thousand functions in one REALbasic plug-in.=20
The Monkeybread Software Realbasic Plugin v6.3. Now universal!
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
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>
|