Hi,
I am using XMetaL 5.5 .
I have created a function to override the File > New operation with the following:
string newFilePath = null;
newFilePath = this.xMetalHelper.getApplication().Documents.ChooseTemplate();
where this.xMetalHelper.getApplication() would return an existing instance of XMetaL.Application.
I found that during runtime, if i click on the Cancel button on the ChooseTemplate dialog, XMetaL cannot be shut down properly, a remant instance would be left and I have to go to Task Manager to clear the process.
Is there a way to properly handle the ChooseTemplate process? How to exit gracefully if a user click the Cancel button on the ChooseTemplate dialog so there won't be memory leak?
Thanks.