Skip to main content
Solved

Zemax is crashing while working in editor

  • Jan 17, 2023 1:54 PM UTC
  • 3 replies
  • 327 views

I have installed the latest version Anysy 2023 R1. While I was working in the NSC editor, Zemax crashed. Does this somebody oberserved? 

Best answer by Ethan

Hi @Photoniker,

It could be a problem with one of the User-Defined DLLs or the CAD object. Are these custom DLLs that you created yourself or ones provided by others that are known to work? Improperly written DLLs can very easily crash OpticStudio if there is a bug in their code. For more information on creating proper DLLs, please see this Knowledgebase article: Custom DLLs in OpticStudio: An overview of user-defined surfaces, objects, and other DLL types – Knowledgebase (zemax.com).

Is the CAD object rather large or complex? Maybe try removing the CAD object, and the DLLs, one by one to see if you can narrow down the problem.

Best,
Ethan

View original

3 replies

Ethan
En-Lightened
Forum|alt.badge.img+2
  • En-Lightened
  • Jan 20, 2023 10:35 PM UTC

Hi @Photoniker,

This is a challenging question to answer without more information about your design. Is there a file (or example file with this issue) that you can share here?

Could you describe more details about what specific components or parameters you were working on when it crashed?

Best,
Ethan 


  • Author
  • Infrared
  • Jan 23, 2023 11:46 AM UTC

Unfortuantly, I can not share a file or have a minimal example. It is a NSC model with user-defined dlls as well as CAD object. However, why should that be depended on the object. I have used the latest version of OpticStudio. 


Ethan
En-Lightened
Forum|alt.badge.img+2
  • En-Lightened
  • Answer
  • Jan 24, 2023 10:20 PM UTC

Hi @Photoniker,

It could be a problem with one of the User-Defined DLLs or the CAD object. Are these custom DLLs that you created yourself or ones provided by others that are known to work? Improperly written DLLs can very easily crash OpticStudio if there is a bug in their code. For more information on creating proper DLLs, please see this Knowledgebase article: Custom DLLs in OpticStudio: An overview of user-defined surfaces, objects, and other DLL types – Knowledgebase (zemax.com).

Is the CAD object rather large or complex? Maybe try removing the CAD object, and the DLLs, one by one to see if you can narrow down the problem.

Best,
Ethan