[Kst] [Bug 161397] Executing a KstScript file does not return the expected result

Andrew Walker arwalker at sumusltd.com
Tue Apr 29 19:26:44 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=161397         
arwalker sumusltd com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From arwalker sumusltd com  2008-04-29 19:26 -------
This is a "feature"

Because updates on most objects in Kst occur asynchronously you can never be sure when an object has actually been updated.

The code "works" when entered by hand as there is a sufficiently long gap between creation of the Data Vector and querying for its values, that the necessary updates have been completed. 

The code "fails" when run via the script as sufficient time is not available.

This can be seen by putting in an alert() statement immediately after creating the Data Vector and before querying for vector values. The expected values will now be returned.


More information about the Kst mailing list