realbasic-nug
[Top] [All Lists]

Re: problem with KeyDown event and Valentina

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: problem with KeyDown event and Valentina
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Fri, 30 Dec 2005 18:20:02 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <de7f5fea2ddae9af2294d5db249cded5 at declareSub dot com>

On Dec 30, 2005, at 5:11 PM, Charles Yeomans wrote:

I'm seeing a curious problem in the interaction of a KeyDown event handler and Valentina. I have an EditField that holds a date. When the date is changed, I retrieve some data from the database and load it into a Listbox. The + and - minus keys increment and decrement the date, and so trigger the database search.

The immediate problem is that when I type several + or - quickly, my application crashes silently. Vigorous logging shows that a call is made to Valentina's SQLSelect function before the previous one has returned, which I suspect is causing Valentina to crash. This happens because the EditField.KeyDown event handler is being called in response to a key press before the previous KeyDown event handler has exited; the log data suggests that REALbasic is calling the next KeyDown while Valentina is in the middle of its SQLSelect call.

I wonder how this can happen. I guess that somehow a cycle of the event loop is occurring while Valentina is executing an SQLSelect ot something; I am most perplexed. This only occurs when connecting to a remote database; I don't know if Valentina is just so much faster locally that no timing problem occurs, or if there is something more fundamentally different.

Is it piossible the SQLSelect yields back to RB and this somehow allows RB to process another event ?

Ruslan would have to comment on that as would someone from REAL as to whether this is possible


_______________________________________________
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  Fri 30 Dec 2005 20:22:50 EST
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Fri, 30 Dec 2005 19:23:17 -0600
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id A898CF9F9FF; Fri, 30 Dec 2005 19:23:06 -0600 (CST)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from imo-d03.mx.aol.com (imo-d03.mx.aol.com [205.188.157.35])
        by lists.realsoftware.com (Postfix) with ESMTP id 6FD50F9F9E9
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 30 Dec 2005 19:22:56 -0600 (CST)
Received: from GAmoore at aol dot com
        by imo-d03.mx.aol.com (mail_out_v38_r6.3.) id w.293.33d878e (3948)
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 30 Dec 2005 20:22:50 -0500 (EST)
From: GAmoore at aol dot com
Message-ID: <293 dot 33d878e dot 30e7376a at aol dot com>
Date: Fri, 30 Dec 2005 20:22:50 EST
To: realbasic-nug at lists dot realsoftware dot com
MIME-Version: 1.0
X-Mailer: Thunderbird - Mac OS X sub 308
X-Spam-Flag: NO
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.2
Subject: Re: Standard dark color?
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

Is there a default color for WINDOWS window panes (that Navy ship gray color)? Related to this... is there a way to do a screen snapshop in Windows XP, like one does in the Mac by Option Shift 3 or 4?
_______________________________________________
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>