IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 22 years ago

Closed 21 years ago

Last modified 21 years ago

#148 closed enhancement (fixed)

psTraceReset() doesn't free memory

Reported by: rhl@… Owned by: george.gusciora@…
Priority: high Milestone:
Component: sys Version: unspecified
Severity: minor Keywords:
Cc:

Description

The SDRS doesn't state explicitly that it should, but my initial implementation did. George noted that
there was no API to free all the psTrace memory and added psTraceFree() -- but it makes sense to
use psTraceReset as none of that memory is useful after the system's been reset.

In this case, psTraceReset() (which isn't in the SDRS) should be removed.

rel2_2

Change History (9)

comment:1 by robert.desonia@…, 22 years ago

Owner: changed from robert.desonia@… to george.gusciora@…

Is this really a bug on the code or the requirement specification? The SDRS
states "a function void psTraceReset(void) will set all trace levels to 0."
This sounds like what was implemented for that function.

I think a change in the SDRS might need to be done here.

-rdd

Oh, and the last thing in the initial report was "In this case, psTraceReset()
(which isn't in the SDRS) should be removed." Did you mean psTraceFree should
be removed?

comment:2 by robert.desonia@…, 22 years ago

Hey, Lupton found rel2_2 - how clever of him! I really didn't advertise its
existence.


comment:3 by gusciora@…, 22 years ago

I removed psTraceFree(), and coded psTraceReset() to free all components in the
tree and set cRoot to NULL.

comment:4 by gusciora@…, 22 years ago

Resolution: worksforme
Status: newclosed

comment:5 by gusciora@…, 22 years ago

The SDR was never modified to conform to the behavior requested in this bug.

comment:6 by Eric.VanAlst@…, 22 years ago

Cc: eugene@… added
Resolution: worksforme
Status: closedreopened

Is this requirement of freeing memory going to be add to SDR for function
psTraceReset?

comment:7 by Paul Price, 22 years ago

Status: reopenedassigned

Fixed the SDRS:

In addition, a function \code{bool psTraceReset(void)} will free memory used by
\code{psTrace} functions, effectively resetting all trace levels to 0.

comment:8 by Eric.VanAlst@…, 21 years ago

Resolution: fixed
Status: assignedclosed

comment:9 by Paul Price, 21 years ago

Verified.

Note: See TracTickets for help on using tickets.