hexagon logo

PCD2EXCEL crashing

Hello all.

Our CMM workstation keeps crashing while trying to export raw data over to Excel. Upon checking the logs I see that PCD2EXEL.exe keeps crashing.

-----
Application: PCD2EXCEL.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ComponentModel.Win32Exception
at System.Windows.Forms.NativeWindow+WindowClass.Regi sterClass()
at System.Windows.Forms.NativeWindow+WindowClass.Crea te(System.String, Int32)
at System.Windows.Forms.NativeWindow.CreateHandle(Sys tem.Windows.Forms.CreateParams)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Application+MarshalingControl ..ctor()
at System.Windows.Forms.Application+ThreadContext.get _MarshalingControl()
at System.Windows.Forms.WindowsFormsSynchronizationCo ntext..ctor()
at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase..ctor(Microsoft.VisualBasic.Ap plicationServices.AuthenticationMode)
at Pcd2Excel.My.MyApplication..ctor()

Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeTypeHandle.CreateInstance(System.Run timeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)
at System.RuntimeType.CreateInstanceSlow(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
at System.RuntimeType.CreateInstanceDefaultCtor(Boole an, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
at System.Activator.CreateInstance[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]()
at Pcd2Excel.My.MyProject+ThreadSafeObjectProvider`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_GetInstance()
at Pcd2Excel.My.MyProject.get_Application()
at Pcd2Excel.My.MyApplication.Main(System.String[])
-----
Faulting application name: PCD2EXCEL.exe, version: 1.0.6913.25268, time stamp: 0x5c083cd9
Faulting module name: KERNELBASE.dll, version: 10.0.19041.3570, time stamp: 0xfaa05682
Exception code: 0xe0434352
Fault offset: 0x0013d982
Faulting process id: 0x43d4
Faulting application start time: 0x01da01f1530c7bc3
Faulting application path: C:\Program Files\Hexagon\PC-DMIS 2019 R2 64-bit\en\PCD2EXCEL.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: a7fc3551-2652-4860-b122-4037e3916c17
Faulting package full name:
Faulting package-relative application ID:
​-----

Any ideas, or suggestions on where to start looking?

  • Not sure why. But, the first thing that caught my eye was the (.ctor) that is used in Visual Studio for a shortcut to create a constructor. Interesting.
  • Is this error log copy and pasted exactly how it looks in the error log? I copied and pasted it into notepad and noticed there is spacing in the entire first segment until the next "Exception Info" segment. It could be copy/pasting it threw in a space.

    Attached Files
  • This is exact text from first error: ID 1000 (they usually come in pairs)

    Faulting application name: PCD2EXCEL.exe, version: 1.0.6913.25268, time stamp: 0x5c083cd9
    Faulting module name: KERNELBASE.dll, version: 10.0.19041.3570, time stamp: 0xfaa05682
    Exception code: 0xe0434352
    Fault offset: 0x0013d982
    Faulting process id: 0x43d4
    Faulting application start time: 0x01da01f1530c7bc3
    Faulting application path: C:\Program Files\Hexagon\PC-DMIS 2019 R2 64-bit\en\PCD2EXCEL.exe
    Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
    Report Id: a7fc3551-2652-4860-b122-4037e3916c17
    Faulting package full name:
    Faulting package-relative application ID:
    ​​
    Next error: ID 1206

    Application: PCD2EXCEL.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.ComponentModel.Win32Exception
    at System.Windows.Forms.NativeWindow+WindowClass.Regi sterClass()
    at System.Windows.Forms.NativeWindow+WindowClass.Crea te(System.String, Int32)
    at System.Windows.Forms.NativeWindow.CreateHandle(Sys tem.Windows.Forms.CreateParams)
    at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Application+MarshalingControl ..ctor()
    at System.Windows.Forms.Application+ThreadContext.get _MarshalingControl()
    at System.Windows.Forms.WindowsFormsSynchronizationCo ntext..ctor()
    at Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase..ctor(Microsoft.VisualBasic.Ap plicationServices.AuthenticationMode)
    at Pcd2Excel.My.MyApplication..ctor()

    Exception Info: System.Reflection.TargetInvocationException
    at System.RuntimeTypeHandle.CreateInstance(System.Run timeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)
    at System.RuntimeType.CreateInstanceSlow(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
    at System.RuntimeType.CreateInstanceDefaultCtor(Boole an, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
    at System.Activator.CreateInstance[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]()
    at Pcd2Excel.My.MyProject+ThreadSafeObjectProvider`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_GetInstance()
    at Pcd2Excel.My.MyProject.get_Application()
    at Pcd2Excel.My.MyApplication.Main(System.String[])


    ​​
  • Do you have Excel installed on this computer?