Quote:
Originally Posted by Chief149
I seem to be getting the following error when trying to call this.GetMemberOffset in one of my dynamic classes:
[SM] Exception reported: Unable to access dynamic handle 5767256
I've traced back through the stack trace and have confirmed for certain that I was acting on a valid dynamic object.
|
Had a bit of spare time at work.
The below is the code that throws the error in your post.
PHP Code:
// Check if object index is valid
if (index < 0 || index >= s_CollectionSize)
{
if (throwerror)
ThrowNativeError(SP_ERROR_NATIVE, "Unable to access dynamic handle %d", index);
return 0;
}
This makes me believe that you're referencing an Invalid Dynamic Object. Dynamic "handles" range from 0 to approx 32K (they are internally array indices for the main collection array). You might want to check your code that is storing/retrieving the Dynamic object as something is not right.
Feel free to post code if you want me to check you're going about it right.
__________________