is a method called when deleting a ilayer ?

Discussion created by castormalin on Jun 30, 2010
Latest reply on Jul 12, 2010 by castormalin

I'm developping in C++ a plugin for arcmap implementing the interfaces ILayer and IExtension. I would like to know if a method is called when the layer is removed in arcmap to make sure ressources are properly disposed.
Seems that it should be the method Shutdown of IExtension, but writing something in a file in the method did nothing.