Invalid clear after SE_SND_REQUEST_RECEIVED
The problem appears client side. The function SOPC_ReturnStatus SOPC_Encodeable_Delete(SOPC_EncodeableType* encTyp, void** encObject)
is called with an invalid encType
which leads to a call to an invalid function encTyp->Clear(*encObject);
.
This function is called by void SOPC_Internal_ApplicationEventDispatcher(int32_t eventAndType, uint32_t id, void* params, uintptr_t auxParam)
which assigns the encType
as follows:
case SE_SND_REQUEST_FAILED:
if (params != NULL)
{
encType = *(SOPC_EncodeableType**) params;
}
However, with the debugger, replacing encType
assignment with encType = (SOPC_EncodeableType*) params
appears to give the right encType
.
Note: the issue must be verified for other encType
assignments in case SOPC_APP_COM_EVENT
.