Author Topic: Subsequent calls to get context item  (Read 3060 times)

martin1

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Subsequent calls to get context item
« on: July 10, 2017, 05:44:16 pm »
Hi,
I am struggling with the methods getContextItem and getTreeSelectedItem.

I have a piece of code where I want to get the user-clicked element. The first call after starting EA to either of these messages always succeeds. But whenever the user calls the same procedure a 2nd time, EA crashes with an unknown exception.

Any help?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Subsequent calls to get context item
« Reply #1 on: July 10, 2017, 06:18:59 pm »
It would probably help, if you post some of your code.

q.