Test program to demonstrate problems with COM interop

Roger BillsdonRoger Billsdon Posts: 14
edited August 19, 2010 11:34AM in SmartAssembly 5
Hi all

If anyone is interested, I've now been able to generate a small test program which demonstrates the problem that SmartAssembly has obfuscating programs that use embedded COM interop types. The program uses Visio 2007 and crashes with the error described in my previous posts: "Specified cast is not valid. at System.StubHelpers.InterfaceMarshaler.ConvertToNative(Object objSrc, IntPtr itfMT, IntPtr classMT, Int32 flags) at Microsoft.Office.Interop.Visio.IVLayer.Remove(Shape SheetObject, Int16 fPresMems)"

Layer.Remove is one of a number of Visio methods that I've found SmartAssembly has problems with.

Best regards
Sign In or Register to comment.