Article # 668, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
I get ASSERTION_FAILED in VisTextHandleCharset
Q. I am getting an ASSERTION_FAILED error in Swat when I'm typing text into a VisLargeText object in my application. The backtrace seems to indicate that the error originated from VisTextHandleCharset. What could be going wrong? A. What's happening is the text object is not handling the key releases. It is getting only the key presses and this causes a problem for the VisTextHandleCharset routine, which counts on there being a key release for every key press. Things to look for: - a GenView that has the attribute GVA_DONT_SEND_KBD_RELEASES set - you've superclassed MSG_META_KBD_CHAR and aren't calling the superclass for both CF_FIRST_PRESS and CF_RELEASE.