CloseAntiFreeze required before thread destruction?
Posted: Mon Feb 05, 2018 11:16 am
Hi,
Is it mandatory to call CloseAntiFreeze before or on thread destruction (from the same thread that the InitAntiFreeze was called from), or is it OK to omit doing this and leave it up to the thread destruction? (That is, will thread destruction eventually also cause CloseAntiFreeze to be called automatically for a thread if required, or alternatively does it not matter if it's not called?)
(Background: I'm trying to plumb in some anti-freeze checking into a datasnap server but it's not exactly straightforward to ensure this gets called from the right thread as some cleanup/destruction calls of datasnap service objects seem to be handled not in the same thread they were created in for whatever reason.)
Thanks
Walter
Is it mandatory to call CloseAntiFreeze before or on thread destruction (from the same thread that the InitAntiFreeze was called from), or is it OK to omit doing this and leave it up to the thread destruction? (That is, will thread destruction eventually also cause CloseAntiFreeze to be called automatically for a thread if required, or alternatively does it not matter if it's not called?)
(Background: I'm trying to plumb in some anti-freeze checking into a datasnap server but it's not exactly straightforward to ensure this gets called from the right thread as some cleanup/destruction calls of datasnap service objects seem to be handled not in the same thread they were created in for whatever reason.)
Thanks
Walter