[TextEditor_mcc] Editor test program crashes in MorphOS

  • From: Ilkka Lehtoranta <ilkleht@xxxxxxxxxxx>
  • To: texteditor_mcc@xxxxxxxxxxxxx
  • Date: Thu, 11 Aug 2005 01:12:18 +0300 (EEST)

Hello

Got problem mentioned in the title - test program was hitting like crazy 
and busylooped. Dumped binary from hitzone and it was good old 
LineCharsWidth() again.

From ChangeLog:

   * mcc: reverted ilkka's fix on VisualHeight() because it didn't catch all
     cases which gave trouble on a hidden TextEditor object. Now all TextFit()
     and TextLength() functions always use a temporary rastport for finding
     out the text limits. In addition, some checks for data->rport and
     data->shown were added to various functions such that a texteditor object
     should not crash anymore if it is used in a hidden state (e.g. hidden in
     a registergroup)

There is one problem left: the temporary rastport is initialized in 
MUIM_Setup and MUIM_Hide. It seems (at least in MUI4) that MUIM_Setup is 
not invoked at all if object is in window but hidden.

It is also possible to crash editor if text is inserted right after when 
application object is created. Temporary rastport should be initialized in 
OM_NEW already. I dont know what to use for SetFont() ?  GfxBase->DefaultFont ?

Or something else?


  Ilkka

_____________________________________________________________________________
TextEditor ML   - http://www.freelists.org/list/texteditor_mcc
Listserver help - mailto:texteditor_mcc-request@xxxxxxxxxxxxx?Subject=HELP
Bugtracker......: http://sourceforge.net/tracker/?atid=731469&group_id=135025

Other related posts: