Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: edit unicode text control




On 30 Mar 2005, at 20:37, Steve Mills wrote:

(Dang reply-to not going to the list!!!)

On Mar 30, 2005, at 13:09, Bryan Pietrzak wrote:

fwiw, I always use kControlEntireControl for the control part... Not sure if that's the issue though.

Tried that on the off chance it would help. Nope.

What I've found since playing with this is that I can get it to happen if controls are created and destroyed in quick succession. One of our panel dialogs has 9 fields in panel 1 and 5 in panel 2. If I machine gun the up/down arrow keys to quickly switch between these 2 panels, I can get the problem to appear in a couple seconds.

Does this ring any bells?

It rings bells with me, but unfortunately I don't have any solution. We had a similar problem where setting the text on a Unicode edit text control would cause a crash deep inside MLTE. This seemed to happen on controls which had been through a re-embedding and resizing process before being shown (they were in panes of tabs controls that we had created in separate windows to avoid IB's horrible tabs control bugs). We never found the problem but managed to make it go away by restructuring our window creation code. I've learned to treat anything based on MLTE with great care as it appears to have some particularly fragile features. One example being that there's no way to hide an MLTE which can cause weird problems or crashes when you try and change the text while the control is hidden. I suspect that MLTE does some lazy initalization internally and remembers the current port the first time it's drawn or something. If you make it draw by changing the text before it's initialized - boom! ...and it always draws because it doesn't have the concept of being invisible. Just a guess on my part though - I spent a long time trying to debug these crashes without really getting anywhere.


Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: edit unicode text control (From: Mike Kluev <email@hidden>)
 >Re: edit unicode text control (From: "Steve Mills" <email@hidden>)
 >Re: edit unicode text control (From: Bryan Pietrzak <email@hidden>)
 >Re: edit unicode text control (From: "Steve Mills" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.