Ticket #177 (new defect)

Opened 1 year ago

Last modified 10 months ago

Infinite loop in OSG_1_COMPAT mode

Reported by: dirk Assigned to: vossg
Priority: blocker Milestone: 2.0 Beta
Component: System Version:
Keywords: Cc:
Completion:

Description

OSG_1_COMPAT can cause infinite loops in changed(), as it defines get<Field>() as edit<Field>(), which adds a change entry. So if any get methods are used inside a changed() method (which is not unusual, on the contrary), you have an infinite loop. :(

We need to find a way to make get the default for value fields, as edit is really hardly ever needed there.

Change History

07/21/07 05:27:47 changed by marcusl

If you access the fc through a const ptr/ref, you'd get the const version of get() that doesn't call changed(), right? Would that be a solution?