Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#853 ooDialog - listBox~insert can crash, etc..

ooDialog.4.2.0
closed
Mark Miesfeld
ooDialog (58)
5
2012-08-27
2009-10-28
Mark Miesfeld
No

The insert() method of the .ListBox class has several problems.

One of which is that it can crash the interpreter under 3.2.0 and can produce very bizarre behavior under 4.0.0 . An example program that demonstrates this is attached.

In addition, the method is documented as inserting the item after the selected item, if the index argument is omitted. However, it usually inserts before the selected item, often inserts at a point that has no relation to the selected item, and rarely inserts after the item.

In the next release, I was going to simply mimic the previous behavior, even though it is nonsensical. However, because I can crash 3.2.0, I'm going to treat this behavior as a bug and fix the method to behave as documented.

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2010-08-10

    This is fixed in trunk. The fix will be present in the next major release of ooDialog.

     
  • Mark Miesfeld
    Mark Miesfeld
    2010-09-08

    This fix will be in the next major release of ooDialog, but not in the ooRexx 4.1.0 release.

     
  • Mark Miesfeld
    Mark Miesfeld
    2012-02-03

    This fix will appear in the next major release of ooDialog, it will not be included in an ooRexx bug fix release

     


Anonymous


Cancel   Add attachments