Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not
- From: Z <Z@xxxxxxx>
- Date: Thu, 11 May 2006 09:57:07 -0700
Hoff Hoffman wrote:
All the code I
have ever seen which uses XtAppAddTimeOut either validates the timer
or has a safety check for zero.
"Validate the timer?"
Is there an Xt...() function that can validate the timer?
Is the timer null? If it is, it's not valid, and it's a bug in the calling code.....
Does the calling code stackdump when the caller passes in a bogus argument value? If so, then that is a bug in the called code, and secondary to the bug in the calling code.
Can we spend our time validating stuff further? Sure. I've been
Hoff, checking for a non-zero value will not guarantee that the timer is valid; it might be uninitialized data or the code might not have set it back to 0 after calling XtRemoveTimeOut().
Is there a function I can call to validate the timer?
If I'm going to change this code, I want to change it *once* and do it *correctly*. If there's a function available to validate, then I should be calling *that*.
Jeez.
.
- Follow-Ups:
- Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not
- From: Hoff Hoffman
- Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not
- References:
- XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not under 7.1-2
- From: Z
- Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not under 7.1-2
- From: davidc
- Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not
- From: George Cook
- Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not
- From: Z
- Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not
- From: Hoff Hoffman
- XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not under 7.1-2
- Prev by Date: Re: Reading 8mm tapes of an unknown format
- Next by Date: Re: SGI files for chapter 11
- Previous by thread: Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not
- Next by thread: Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not
- Index(es):