Dave,

I have the feeling that it would help to change the #if 0 in
Scale.c line 570 to #if 1.
You have to add
        Dimension ht, wd;
        XmKidGeometry boxes;
declarations for that to work though.

Could you check whether this doesn't break your app ?

        Danny
On Mon, 2004-10-25 at 16:43, Dave Williss wrote:
> I found a couple UMRs in Scale.c when running under Purify.  These should 
> probably be initialized in the widget's initialize code.
> 
> 
>   [W] UMR: Uninitialized memory read in showValue {6 occurrences}
>     Reading 4 bytes from 0x0eef54b8 (4 bytes at 0x0eef54b8 uninitialized)
>     Address 0x0eef54b8 is 304 bytes into a 432 byte block at 0x0eef5388
>     Address 0x0eef54b8 points to a malloc'd block in heap 0x06bd0000
>     Thread ID: 0x148
>     Error location
>         showValue      [scale.c:2007]
>                 if (Scale_Orientation(w) == XmHORIZONTAL)
>                 {
>                 Scale_ShowValueX(w) = SCB_SliderX(sb) + (SCB_SliderWidth(sb) 
>  >> 1) -
>          =>         (Scale_ShowValueWidth(w) / 2) + XtX(sb);
> 
>                 Scale_ShowValueY(w) = XtY(sb) - Scale_ShowValueHeight(w);
>                 }
> 
> [W] UMR: Uninitialized memory read in XmScaleConvertScaleValueToSCBValue {6 
> occurrences}
>         Reading 4 bytes from 0x0eef54a8 (4 bytes at 0x0eef54a8 
> uninitialized)
>         Address 0x0eef54a8 is 288 bytes into a 432 byte block at 0x0eef5388
>         Address 0x0eef54a8 points to a malloc'd block in heap 0x06bd0000
>         Thread ID: 0x148
>         Error location
>             XmScaleConvertScaleValueToSCBValue [scale.c:2247]
>                     DEBUGOUT(_LtDebug(__FILE__, w, 
> "_XmScaleConvertScaleValueToSCBValue()\n"));
>                     roundarg = (double)(Scale_Value(w) - Scale_Minimum(w))
>                          * (double)(SCB_MAX - SCB_MIN - Scale_SliderSize(w))
>              =>          / (double)(Scale_Maximum(w) - Scale_Minimum(w));
>                     /* amai: is this the correct formula?
>                              looks like the old one in 
> _XmScaleConvertSCBValueToScaleValue() */
>                     result = (int)(roundarg);
> 
>         Reading 4 bytes from 0x0eef54b8 (4 bytes at 0x0eef54b8 
> uninitialized)
>         Address 0x0eef54b8 is 304 bytes into a 432 byte block at 0x0eef5388
>         Address 0x0eef54b8 points to a malloc'd block in heap 0x06bd0000
>         Thread ID: 0x148
>         Error location
>             showValue      [scale.c:2007]
>                     if (Scale_Orientation(w) == XmHORIZONTAL)
>                     {
>                     Scale_ShowValueX(w) = SCB_SliderX(sb) + 
> (SCB_SliderWidth(sb) >> 1) -
>              =>         (Scale_ShowValueWidth(w) / 2) + XtX(sb);
> 
>                     Scale_ShowValueY(w) = XtY(sb) - 
> Scale_ShowValueHeight(w);
>                     }
> 
> 
> 
>  -- Dave Williss
> ------
> Meddle not in the affairs of dragons,
>    for you are crunchy and taste good with catsup
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Lesstif-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/lesstif-discuss
-- 
Danny Backx - danny.backx-at-planetinternet.be    http://up.to/danny.backx



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Lesstif-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lesstif-discuss

Reply via email to