Hello pam2r Users, hello Jacopo,
I passed the info about the libraries to the zemax support, they answered the following:
"
Thank you for providing more information. The
libraries you mentioned look no problem to me.
Unfortunately we cannot debug for users’ DLL except
the problem can also be reproduced with the built-in DLLs.
I would suggest you compare the nearest built-in code
with your own code.
You can find the source code of these built-in DLL at
\Documents\Zemax\DLL\Surfaces.
I think the problem is probably at your custom code.
"
Meanwhile, I was searching a little bit about where could be the
issue.
I´ve compiled some info from other users, I put here the links.
If you can read these, maybe there is some clue there:
* Zemax manual, 18.1 ---> pages 332-333 (see attached to this
e-mail those pages).
* In the zemax forum---> UserDefinedSurface(UDS)-DLL-Error
-->
http://forum.zemax.com/Topic4335.aspx
* In the zemax web of knowledg ----> How to debug a DLL or EXE
---->
http://customers.zemax.com/os/resources/learn/knowledgebase/using-zos-api-how-to-debug-a-user-defined-dll
* Other users notes ----> Create a Zemax 64 bit DLL --->
https://texnical.wordpress.com/2014/07/23/create-a-zemax-64-bit-dll/
Have a nice weekend,
conchi