Thread
:
Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
08-26-2016 , 21:20 Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]
#
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.
__________________
Donate
|
AUS-TG
|
Console
|
Dynamic Objects
Neuro Toxin
View Public Profile
Send a private message to Neuro Toxin
Visit Neuro Toxin's homepage!
Find More Posts by Neuro Toxin