Immediately after this, the code does an XtVaGetValues on XmNchildren, to get a WidgetList of all the children of wImageMD - but it returns null (rather than wBP1, etc). Also, confusingly, XtParent(wBP1) does appear to return the parent (wMD).
The code worked fine 10 years ago on the HP-UX system, but ultimately hits a fatal exception in our RHEL system, as further on in the code it's unable ofcourse to iterate the sub-widgets of wMD (as it's NULL).
Is there an easy fix to this, or does it necessitate a fundamental rethink of the whole object model? Might it be caused by a changed semantics to those motif calls over the last 10 years (our RHEL system has up-to-date motif libraries).
> Immediately after this, the code does an XtVaGetValues on XmNchildren, > to get a WidgetList of all the children of wImageMD - but it returns > null (rather than wBP1, etc). Also, confusingly, XtParent(wBP1) does > appear to return the parent (wMD).
> The code worked fine 10 years ago on the HP-UX system, but ultimately > hits a fatal exception in our RHEL system, as further on in the code > it's unable ofcourse to iterate the sub-widgets of wMD (as it's NULL).
> Is there an easy fix to this, or does it necessitate a fundamental > rethink of the whole object model? Might it be caused by a changed > semantics to those motif calls over the last 10 years (our RHEL system > has up-to-date motif libraries).
> Any comments on this would be appreciated.
The code you posted says you get the children array from wImageMD, not wMD. -- Fred K