Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: martin1 on July 10, 2017, 05:44:16 pm

Title: Subsequent calls to get context item
Post by: martin1 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?
Title: Re: Subsequent calls to get context item
Post by: qwerty on July 10, 2017, 06:18:59 pm
It would probably help, if you post some of your code.

q.