>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: APL 5.2.10 crashes (repeatable) when typing in combo box
JCarter
APL 5.2.10 crashes (repeatable) when typing in combo box
Posted: Monday, July 11, 2005 2:31 PM (EST)
The attached demo workspace crashes whenever a user types a search letter in a style 2 combo box. The unique feature of this example is that the client did not like the appearance of dozens on combo boxes on the screen so each input field is initially shown as a label field with an onmousedown event handler that creates a combo box, turns off the onmousedown handler and allows the user to select from the list. However, if the user presses any letter to locate the first entry the begins with the typed letter, APL crashes.

Attached file: ERROR.w3


Comments:

Author Thread:
Support
APL 5.2.10 crashes (repeatable) when typing in combo box
Posted: Tuesday, July 12, 2005 3:54 PM (EST)

The problem is that the combo box is being deleted (line 6 in function DONE) in its own onCloseUp and onClick event handlers (set on line 18 of function OPEN).  This is not recommended.  Instead, you will want to defer the deletion of the combo box until after its event handler(s) has run to completion.  This is made possible with the Defer method.  The solution to your problem is to replace the current line with the following:

 

'Form.Sel.Pg1.Fr1.Sel' Œwi 'Defer' "Œwi 'Delete'"

 

APL2000 Support

     



APL2000 Official Web Site

There is no such thing in anyone's life as an unimportant day.
--- Alexander Woollcott

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |