weiss@theory.lcs.mit.edu (Paul G. Weiss) (07/02/90)
This is addressed to anyone at Microsoft or anyone who has experience using Multiple Line Edit-Field controls. I have noticed some odd behavior of MLE's when running under the debugging kernel. The version of OS/2 I am running is OS/2 1.20 and the debugging kernel identifies itself with this message: Presentation Manager Driver 12.164 (Debug Version) - (WINBLD12) Here are the problems: (1) Whenever you change the size of a MLE window it generates the following message on the debugging screen: GRE00128E PMERR_INV_HRGN (2) If you have word wrapping enabled and the MLE is minimized and you try to insert text using MLM_INSERT the system hangs. Presumably the word-wrap algorithm is hopelessly confused about the zero size of the window. (3) If the control is read-only, the ctrl+ins accelerator (COPY) does work. It does work if the control is not read-only. Since COPY does not modify the te, this makes no sense. (4) This one is what really worries me. If you use n MLE's in the course of an application, when you close the application you get n copies of the following message on the debugging screen: Process Termination -- Deleting a region... It appears that the MLE is leaving something around even after it is destroyed. My application uses MLE's to display information and creates and destroys them constantly during the course of a session. I am concerned that I am using up a system resource by doing this, since the MLE's don't appear to be releasing all of its resources properly. Questions: (A) Has this problem been fixed in OS/2 1.21? (B) If not, is there a known workaround, e.g. can I subclass the control and destroy this region by handling WM_DESTROY? Thanks, Paul Weiss