Skip to main content
Solved

Zemax C++ ZOS API COM Error

  • February 24, 2025
  • 1 reply
  • 53 views

Imaad

Hi all,

I am trying to run a simple standalone c++ application which gives  “Microsoft C++ exception: _com_error at memory location” The error is on line 29 

// Create the initial connection class
IZOSAPI_ConnectionPtr TheConnection(__uuidof(ZOSAPI_Connection));

 

Does someone have an idea on what could be the issue?

 

I prefer to use C++ as I have to integrate other code with it.

 

Thank you.

Best answer by Imaad

Hi all,

It seems I have corrupt graphics drivers that are causing this issue. The code works fine on other system.

View original

Imaad
  • Single Emitter
  • February 25, 2025

Hi all,

It seems I have corrupt graphics drivers that are causing this issue. The code works fine on other system.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings