EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 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: [Bug 1879532] Re: Can't completely shutdown libCa and libCom
From: Peter Heesterman via Core-talk <core-talk at aps.anl.gov>
To: core-talk at aps.anl.gov
Date: Wed, 20 May 2020 17:38:38 -0000
See https://stackoverflow.com/questions/35828004/waitforsingleobject-
for-thread-object-does-not-work-in-dll-unload

I have implemented a solution by creating a function within the myCaLab DLL which in turn ca_task_exit (or ca_context_destroy), and which called from the main application.
This causes it to exit normally.

Is this a solution that meets your needs?

-- 
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1879532

Title:
  Can't completely shutdown libCa and libCom

Status in EPICS Base:
  Confirmed

Bug description:
  Most recently, Carsten Winkler reported in https://epics.anl.gov/tech-
  talk/2020/msg00946.php

      For a project I need to load and unload the Channel Access context in a
      shared library. Loading is no problem but unloading. It always fails
      during ca_context_destroy() function.

  This problem has been reported and discussed previously, see
  https://epics.anl.gov/tech-talk/2017/msg00371.php and
  https://epics.anl.gov/tech-talk/2004/msg00743.php thus it is a known
  issue which would probably require significant work to fix.

  This bug report is a place-holder for any work towards making it
  possible to completely shut down all libCom background threads and
  releasing the resources allocated by those subsystems.

To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1879532/+subscriptions

References:
[Bug 1879532] [NEW] Can't completely shutdown libCa and libCom Andrew Johnson via Core-talk

Navigate by Date:
Prev: Build failed: epics-base base-7.0-9 AppVeyor via Core-talk
Next: Jenkins build is back to normal : EPICS-3.14 #674 Jenkins EPICS PSI via Core-talk
Index: 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: [Bug 1879532] Re: Can't completely shutdown libCa and libCom Freddie Akeroyd via Core-talk
Next: [Bug 1879532] Re: Can't completely shutdown libCa and libCom Andrew Johnson via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 20 May 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·