1 Reply Latest reply on Dec 16, 2016 6:33 AM by A. Patterson

    Plugin lifecycle question, setup/cleanup

    btempleton1982 Level 2

      Is there a good spot to put any clean-up code, where it will be run after each time my plugin is run?


      Right now, I have a class set up in StartupPlugin and cleaned up in ShutdownPlugin. But that means that the setup code gets run when Illustrator starts, and doesn't get cleaned up until Illustrator quits.


      What I'm looking for is the spot that will get run on each "activation" of my plugin, and then cleaned up after all notifications and messages have finished. There must be somewhere like that that I'm missing?