I'm trying to edit nisysdef file with C++, and i've encapsulated the .net interface into COM with C#. For other reasons, i use the COM interface in a dll library, and my main project use the dll.
It's all right under debug version, but my release version crashed. Finally, i found that i can not use the "SystemDefinition(string filepath)" in my C# project, and my exe always crashes at the second time to use COM, it means that ererytime after i use the "SystemDefinition(string filepath)", i can not use the COM any more.
Even stranger, i can use the COM interface directly in my main project, that means i can not use the COM interface which contain the "SystemDefinition(string filepath)" in my dll project, Why?
The attachments is the simplified solution files, i built it with visual studio 2008. You can have a try, but you must install VeriStand.