[comp.windows.x.motif] Anyone got any neat trick

lynnes@ALEX.CSS.GOV (Christopher Lynnes) (05/03/91)

>I'm trying to track down an illusive bug.  It appears that an XmString
>is getting trounced on.  If it were any *normal* data type I'd just
>display it in dbx and then step through the program and watch for it
>to get trashed.  But !@#$% Motif compound strings are opaque, and there's
>no easy way that I've found to "watch" what's happening to one.
>
>Has anyone else got any clever tricks for doing this?

	Conor Cahill (virtech!cpcahil@uunet.UU.NET) 
has developed a very useful malloc library that you link in place
of the system library, that provides some quite useful debugging
properties, like array bounds checking. The only drawbacks are:

(1) that it is quite slow with Motif applications due to all the malloc'ing
(2) you usually have to free an array before you can tell that it has
been exceeded.

I generally use it when I'm at my wit's end.

Chris Lynnes