Article ID: 000057961 Content Type: Error Messages Last Reviewed: 07/20/2021

Encountered Error, "Unhandled exception: 0xC000001D: Illegal Instruction," when Running an Intel® Software Guard Extensions (Intel® SGX) Enclave in Windows® 10

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

How to resolve "illegal instruction" exception when running an Intel® Software Guard Extensions (Intel® SGX) enclave in 32-bit mode

Description
  1. Compiled enclave for platform Any CPU | Win32 in Visual Studio*
  2. Ran application and it crashed
  3. Visual Studio debugger shows error, Unhandled exception: 0xC000001D: Illegal Instruction, in the signed enclave DLL
Resolution

In Visual Studio, compile the solution for platform x64.

Additional information

Refer to Use of Large Addresses for 32-bit Enclaves for handling large pointer addresses if the enclave must be 32-bit.

Related Products

This article applies to 1 products