Troubleshooting

Some typical errors will be listed in this section, together with suggestions on how to address the problem.  

Processor architecture mismatch

The compiler states the following:

There was a mismatch between the processor architecture of the project being built "ARM" and the processor architecture, "x86", of the implementation file "..\LumiaImagingSDKLibs\X86\Lumia.Imaging.dll" for "..\LumiaImagingSDKLibs\X86\Lumia.Imaging.winmd". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and implementation file, or choose a winmd file with an implementation file that has a processor architecture which matches the targeted processor architecture of your project

To address this, remove the "All CPU" architecture from the solution architecture by following the instructions in chapter Adding libraries to the project.

My NuGet update or installation did not work: not all libraries are installed

In a successful NuGet installation of the Lumia Imaging SDK, three libraries are added to your project: Lumia.Imaging, Lumia.Imaging.Managed, and Lumia.InteropServices.WindowsRuntime.

It is possible that only one library is visible after the NuGet installation or update (Lumia.Imaging.Managed).

Typically, just closing Visual Studio and re-opening it should resolve the issue and all references will become visible in Project > References. If restarting Visual Studio does not address the issue, your NuGet package manager may be outdated. This type of error occurs when your NuGet version is lower than 2.5. To address this issue, remove the LumiaImagingSDK NuGet package from your project and update your NuGet to latest NuGet version. You can update NuGet by using the command update in the Tools > Package Manager Console in Visual Studio (follow the steps in the Adding libraries to the project section).

Once your NuGet version is up to date, re-install the LumiaImagingSDK NuGet package. Close Visual Studio and re-open it , and all three library references should be visible in Project > References.

Your project should now build and run successfully.

The exception being thrown does not say anything meaningful

Make sure to enable Native Debugging to be able to see more detailed information about what is causing the exception.

To enable Native Debugging, go to the Properties Setting tab for your project and debug view. Change Debugger Type UI Task from Managed Only to Native Only or Mixed Mode. Note that Mixed Mode is not available on some platforms.

The Call Stack, Threads, or Tasks views sometimes seem to lack the information I expect while debugging

Try switching to Native Debugging to get more information in these views.

To enable Native Debugging, go to the Properties Setting tab for your project and debug view. Change Debugger Type UI Task from Managed Only to Native Only or Mixed Mode. Note that Mixed Mode is not available on some platforms.

Show: