Skip to main content
Solved

Zemax C++ ZOS API COM Error

  • February 24, 2025
  • 1 reply
  • 95 views

Imaad
  • Single Emitter
  • 1 reply

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.

1 reply

Imaad
  • Author
  • Single Emitter
  • 1 reply
  • Answer
  • February 25, 2025

Hi all,

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