Home Forums General XMetaL Discussion ChooseTemplate issue Reply To: ChooseTemplate issue

Derek Read

Reply to: ChooseTemplate issue

I'm not sure I understand the need to instantiate XMetaL Author as a COM object here (unless this script is not living inside an MCR file, which seems likely as this code looks like C# or something).

I don't think this has anything to do with a particular API in the product. One reason it might not shut down properly is because there is an open reference to it somewhere.

Try to find an appropriate place to explicitly (on purpose) destroy the reference as soon as possible after you no longer need it and you should be OK.

If you think this is a bug in the product please submit a case to XMetaL Support including complete sample code to reproduce it. If possible, simplify the project to the point where it only contains just enough code to reproduce the issue as code that does something not directly related to the issue will confuse things.