1
Automation Interface, Add-Ins and Tools / Re: EA crash with "EA_OnPreNewDiagramObject"
« on: September 24, 2011, 06:51:22 pm »
Hi,
what is the version of your EA?
In 9.1 release notes they state that the return value of EA_OnPreNewDiagramObject is temporarily ignored when creating an instance, but this should not result in a crash.
Maybe your add-in manipulates the repository on another method?
E.g.:
I have the need to allow on instances of a specific profile stereotype be created in a sequence diagram. EA_OnPreNewDiagramObject would be perfect for this, however it does not work, as described above.
So, I tried to delete the DiagramObject from EA_OnPostNewDiagramObject, in this case EA crashes for me. I will contact support, maybe they have a solution.
Cheers
Tibor
what is the version of your EA?
In 9.1 release notes they state that the return value of EA_OnPreNewDiagramObject is temporarily ignored when creating an instance, but this should not result in a crash.
Maybe your add-in manipulates the repository on another method?
E.g.:
I have the need to allow on instances of a specific profile stereotype be created in a sequence diagram. EA_OnPreNewDiagramObject would be perfect for this, however it does not work, as described above.
So, I tried to delete the DiagramObject from EA_OnPostNewDiagramObject, in this case EA crashes for me. I will contact support, maybe they have a solution.
Cheers
Tibor