diff --git a/src/ca/CAref.html b/src/ca/CAref.html index 0db2fbd45..5145585b6 100644 --- a/src/ca/CAref.html +++ b/src/ca/CAref.html @@ -4,6 +4,13 @@
Shut down the calling thread's channel access client context and free any resources allocated. Detach the calling thread from any CA client context.
-Be advised that any user created threads that might have attached -themselves to the CA context must of course stop using it prior to its being -destroyed.
+Any user-created threads that have attached themselves to the CA context +must stop using it prior to its being destroyed. A program running in an IOC +context must delete all of its channels prior to calling ca_context_destroy() +to avoid a crash.
+ +A CA client application that calls epicsExit() must install an +EPICS exit handler that calls ca_context_destroy() only after first +calling ca_create_context(). This will guarantee that the EPICS exit handlers +get called in the correct order.
On many OS that execute programs in a process based environment the resources used by the client library such as sockets and allocated memory are