EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Clean up library upon ioc exit
From: Laurenz Rettig via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Sat, 21 Nov 2020 17:57:48 +0100
Hi,

I am trying to build a model 3 motor driver for a manipulator, that is
interfaced by a vendor-DLL on windows. I can load the the DLL within the
motor driver class library, however this library needs to be explicitly
unloaded (using FreeLibrary) before exiting the program, otherwise it
crashes on exit. Therefore, I am looking for a way to invoke this unload
function upon exit of the ioc, i.e. when "exit" is called in the ioc or
it is stopped otherwhise. I tried building a destructor for my motor
driver class, but this does not ever seem to be invoked. Is there any
proper way of doing this?

Best regards,

Laurenz

-- 
Dr. Laurenz Rettig
Fritz Haber Institute of the Max Planck Society
Department of Physical Chemistry
Dynamics of Correlated Materials
Faradayweg 4-6
14195 Berlin, Germany

phone: +49-(0)30-8413 5225
email: rettig at fhi-berlin.mpg.de



Replies:
Re: Clean up library upon ioc exit Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: calcout record, CP link, Cached Puts Michael Davidsaver via Tech-talk
Next: Re: Clean up library upon ioc exit Ralph Lange via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: New releases of the measComp module Mark Rivers via Tech-talk
Next: Re: Clean up library upon ioc exit Ralph Lange via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 21 Nov 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·