Reflection crash trying to Get value

About Monkey 2 Forums Monkey 2 Programming Help Reflection crash trying to Get value

This topic contains 2 replies, has 2 voices, and was last updated by  peterigz 2 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5730

    peterigz
    Participant

    Been playing with reflection and looking to port some code over, but having issues with the following, not sure if I’m doing something wrong. It crashes trying to get the value of setting with a memory access error:

    #5741

    nerobot
    Participant

    You should to replace  setting.Get(Null)  with setting.Get(Self) because Null is used for Globals only.

    #5747

    peterigz
    Participant

    Ahh I see, that works thanks! I wasn’t understanding what the Instance to pass was meant to be but makes sense now 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.