SwDocumentMgr.ISwDMDocument15.GetExternalFeatureReferences Server Fault doesn't occur in debug but does in release

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))   at SwDocumentMgr.ISwDMDocument15.GetExternalFeatureReferences(SwDMExternalReferenceOption& ExtRefOption)at GetReferences.Program.GetPartOrAssemblyReferences(SwDMDocument dmDoc)at GetReferences.Program.Main(String[] args)

When I debug my application, I DO NOT get the error above.  When I build the application and then go to use it, I get the previous error.  I have no idea on how to troubleshoot this.  It happens only with a 5 files in 26,000.

Thanks for your help.

Sincerely,

Jason

SolidworksApi macros