GetPropertyValue access violation

Found a solution. In my case using GetObjectPropertyValue_InContainer instead did the trick and no more access violation.