Error: The type initializer for ‘ImageMetrics.swig.ZodTechAPIClient.ZodTechAPIClientPINVOKE’ threw an exception.

Brian Genna -

Error Message:

"The type initializer for ‘ImageMetrics.swig.ZodTechAPIClient.ZodTechAPIClientPINVOKE’ threw an exception."


Potential Causes: 

  • An issue in Environment Variables in Windows where the path to Matlab is incorrect and thus Analyzer will produce the error when trying to open and will crash.
  • The 32-bit version of Matlab Runtime Compiler is installed instead of the 64-bit version that is required to run Analyzer. You can download the 64-bit version on our downloads page here: Faceware Software Downloads
  • Your machine lacks some of the dependencies for Analyzer. 

    Analyzer requires several different runtimes and components to run properly. Please make sure you have the following installed before installing and running Analyzer. Download links are provided.

    Matlab Runtime Compiler 7.16: 

    Microsoft .NET Framework 4 or 4.5: 

    Visual C++ Redistributable 2010 x64:


Possible Solution (will not work in all cases):

1.) In Windows, go to Control Panel>System>Advanced System Settings 
2.) In the Advanced tab, click 'Environment Variables.' 
3.) Under System Variables, select the one named 'Path' and click the 'Edit' button. 

4.) Paste the following at the end of the string exactly as it appears, including the semi-colon:

;C:\Program Files\MATLAB\MATLAB Compiler Runtime\v716\runtime\win64

5.) Restart your machine.


*Note: Path may be different if Matlab was installed in a non-default location

Have more questions? Submit a request


Powered by Zendesk