I am currently working on a Data Reference that has to use the timecontext.
I have overloaded the AFDataReference class and in particular the GetValue and GetValues functions.
In the GetValues (plural) the time context is defined as a AFTimeRange and I do can use the timeRange in my AFDataReference overloaded class.
In the GetValue (singular) the timecontext is passed as an "object" as it can be either a AFTime or an AFTimeRange.
The issue is that I get a null pointer exception when I try to cast the object to an AFTime.
In the VisualStudio debugger, I can see that tje timeconext is "null" while the parameter in the calling funtions AFAttribute.GetValue(AFTime) is properly set with and AFTime object....
Has anyone encountered this issue ?
Thanks in advance.