Raised This Month: $ Target: $400
 0% 

Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-25-2016 , 04:26   Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]
Reply With Quote #11

Quote:
Originally Posted by Chief149 View Post
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 || 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.
__________________
Neuro Toxin is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode