Skip To Main Content
Support Knowledge Base

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

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

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.