View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-26-2016 , 21:20   Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]
Reply With Quote #110

To confirm. The index out of bounds error is saying your dynamic object is invalid. It doesnt relate to the member your trying to access.

Maybe add a check like .IsValid just before your error line.

Dynamic objects are initialised instantly.

The "class" method your using is like .01 faster over 100K member iterations which is nothing really. The class code is safe if noone accesses the dynamic object from outside your class.

By removing the offsets and doing methodmaps based on the last post to you: you should remove those pesky and hard to debug issues when your checking the member names in the initialiser and properties. It also makes the code heaps easier to manage. Imo, this outweighs the ever so slight performance boost.

When i get weird issues with members. I dump the object using .WriteKeyValues. This is the best way to check your data is right.
__________________
Neuro Toxin is offline