Re: Internal error in ui. 139

Edward Di Geronimo Jr. (edwdig@bergen.org)
Tue, 17 Dec 1996 17:51:02 -0500

>When you're doing a Settings dialog and have there several GenItemGroup
>lists that all have same values (eg. Yes/No) you might get the idea of
>reusing some objects.. You can't, it will crash the system - even when
>only of one the GenItemGroups is actually used == the object definition
>is enough to bring the system down.. but only at run-time. Weird.

That's because of how the GI_comp field works. It's fixed size. It's really
a linked list. The parent stores the optr of the first child. The first
stores the next child's. And so on. The last stores the optr of the parent.
Therefore you can't have multiple parents. To get around it, before the
dialog comes up, send the other dialog MSG_GEN_REMOVE_CHILD, and then
MSG_GEN_ADD_CHILD to the new dialog.

------------------------------------------------------------------------
| I've always been afraid to die, but I think I'm more afraid to live. |
| -Billy Corgan, Smashing Pumpkins, The Aeroplane Flys High |
------------------------------------------------------------------------
| Edward Di Geronimo Jr. edwdig@bergen.org |
------------------------------------------------------------------------