[comp.windows.x.motif] XmSelectionDialog, Motif 1.1

lcp@ibism.UUCP (Larry Poleshuck) (11/14/90)

We are having a problem with Motif 1.1 on VMS.  (yes, VMS).  We have a
XmSelectionDialog.  We add a few items to the scroll list in the selection box.
Then we delete ALL using XmListDeleteAllItems() and then add new items to the 
list.  We get access violations (ie segment violation) when we move the cursor
and cause a focus event.  We have tried calling XmListDeselectAllItems before
the deletion, on the assumption that we still had something selected from
the previous list.

Has anyone seen this problem.  Is it a bug or a mis-reading of the use of
the widget?

-- 

Larry Poleshuck
Citibank
111 Wall Street
New York, NY  10043

Phone:  212-657-7709
Fax:    212-657-0068
E-Mail: uunet!ibism!lcp

lcp@ibism.UUCP (Larry Poleshuck) (11/16/90)

In article <12079@ibism.uucp>, lcp@ibism.UUCP (Larry Poleshuck) writes:
> We are having a problem with Motif 1.1 on VMS.  (yes, VMS).  We have a
> XmSelectionDialog.  We add a few items to the scroll list in the selection box.
> Then we delete ALL using XmListDeleteAllItems() and then add new items to the 
> list.  We get access violations (ie segment violation) when we move the cursor
> and cause a focus event.  We have tried calling XmListDeselectAllItems before
> the deletion, on the assumption that we still had something selected from
> the previous list.
> 
> Has anyone seen this problem.  Is it a bug or a mis-reading of the use of
> the widget?
> 
> -- 

A work-around to this bug is to delete the list items one at a time, rather
than deleteAll.  When we do that, the access violations disappear.


-- 

Larry Poleshuck
Citibank
111 Wall Street
New York, NY  10043

Phone:  212-657-7709
Fax:    212-657-0068
E-Mail: uunet!ibism!lcp

murphy@ufp.dco.dec.com (Rick Murphy) (11/18/90)

Others have also suggested to me that deselecting all the items in the XmList
before deleting 'em will fix it. I've written my own List widget, so I haven't
seen the problem with Motif V1.1 or verified the workaround.
	-Rick

--
Rick Murphy, WA1SPT/4			DEC Washington ULTRIX Resource Center
Domain:  murphy@ufp.dco.dec.com -or- murphy@ufp.enet.dec.com
Bang:    decwrl!ufp.enet!murphy
Ding:	 (301) 306-2985
Disclaimer: This nonsense came from an AI program written in TECO. Ignore it.