Open the-om opened 6 years ago
The fix was started in #1656 and is already usable.
Seems to work! Thank you for the quick fix!
seems to work not, I have tried to implement a node type destructor and it will not be called - is there a working example available?
I took a look into ua_services_nodemanagement.c and intrumented the following method
static void deconstructNodeSet(UA_Server *server, UA_Session *session, UA_ReferenceTypeSet *hierarchRefsSet, RefTree *refTree) {
it looks like there is no lifecycle information available, the pointers are NULL.
I am working with the actual origin/master
Description
I was trying to attach a node-type destructor to my server variables. However I noticed that the destructor only gets called when variable nodes are explicitly removed via UA_server_deleteNode. Destructors are not called when the server is just stopped and shut down. Is there a possibility to have destructors called without having to keep track of variables myself?
Background Information / Reproduction Steps
Checklist
Please provide the following information:
UA_LOGLEVEL
set as low as necessary) attached: N/A