From the code snippet I could see that the Object variable (member of the Frame Structure) is allocated with size as ObjectCount each having the size of object. So when accessing the member of Object structure either you have to use statements as below:
since it is a pointer it should use the statement as below to access the members instead of (.).
Hope this might be helping out to solve your issue.