realbasic-nug
[Top] [All Lists]

Re: REALSQL and Thread

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: REALSQL and Thread
From: Marco Bambini <marco at sqlabs dot net>
Date: Sat, 31 Dec 2005 09:48:24 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <A75D5023-845A-4EB2-827B-43BFDFB1FADE at nc dot rr dot com> <a24c62fa8dacc625c50fab83852f5ca5 at great-white-software dot com>
Actually REALSQL calls REALYieldToRB periodically within an sqlite3_progress_handler routine.
So, about every .25 seconds we give time to RB to perform its tasks.
As far as I know, there is no other way in the plugin api to give time to other threads...

---
Marco Bambini
http://www.sqlabs.net
http://www.sqlabs.net/blog/



On Dec 30, 2005, at 10:44 PM, Norman Palardy wrote:

On Dec 30, 2005, at 2:12 PM, Christian Miller wrote:


In place of "pBar.Refresh", I've tried "app.SleepCurrentThread 500" and "app.Doevents". Nothing seems to make the pole spin. In the IDE, the maximum is set to zero so as soon as I show the progress bar it should be spinning.

Any ideas?

Unless the plugin yield's a thread wont make any difference
And, it's entirely possible that because it's based on SQLite that there are places where the SQlite code will not yield and so you're stuck

One of the down sides to a co-operative model and incorporating third party code
_______________________________________________
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>