It's very slow to read the assembly design tree. In my code, it consumes 2~4 seconds to get the document by ISwComponent.ReferenceDocument. When I set CommandInProgress = true, it solved.
It throws a exception when the application getting the root component's children which is an assembly by ISwComponent.Children. The code "vChildComps.Count" throws System.AccessViolationException:“Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”
solidworks 2018SP5, xcad.net 8.0beta 4913
May be they are not issues:
solidworks 2018SP5, xcad.net 8.0beta 4913