XmText Field Problem

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
XmText Field Problem

Submitted by Anonymous on Tue, 06/12/2001 - 13:38. Developers
I am porting an application from Solaris 5 to Solaris 7. The problem is when I have a field that the text in the field will be insensitive. We go and do an XQueryColor and this message appears.

X Error of failed request BadMatch (invalid parameter attributes)
Major opcode of failed request 56 (X_ChangeGC)
Serial number of failed request 4069
Current serial number in output stream 4131

and the application then goes away.

Anonymous

This might not be your fix BUT are you patched up-to date?
patches for Solaris 7 reports a bug in the XmText Field which

http//sunsolve.sun.com/pub-cgi/findPatch.pl?patchId=107081&rev=33

has this problem

(from 107081-31)
4414939 motif text widget accesses illegal memory addresses

ICS_support

Older versions of XmText and, I believe, XmTextField had internal caching problems that could lead to errors when the GCs were changed internally.

However, it`s not clear to me what you are doing that would result in this error -- what happens between the XQueryColor() call and the error? What other calls are you making?

Protocol errors are always nasty and are often very difficult to work around. The Motif widgets should never generate protocol errors -- and yet they do. Generally, you can help solve protocol errors by running the application synchronously (-synch) and stopping in _XDefaultError to examine the stack.