Microsoft Ink InkAnalyzer "... is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"

1k views Asked by At

i am getting a "... is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"

Exception with the following code, any suggestions how to fix it ?

InkAnalyzer analyzer = new InkAnalyzer(this.overlay.Ink, this);
analyzer.AddStrokes(this.overlay.Ink.Strokes);
// Exception
AnalysisStatus status = analyzer.Analyze();
1

There are 1 answers

0
Cocowalla On BEST ANSWER

I just ran into exactly the same problem. Apparently the Ink Analysis API only work with x86 assemblies, and I'm running an x64 machine. I was targeting 'Any CPU', but had to target 'x86' to get it working.

More info here.