Use dxfg_v4_DXFeed_getLastEvent(). This function writes the result into the given event: it frees the strings of the event with the SDK's allocator and writes the strings allocated by the SDK there. So the event must be created by dxfg_EventType_new() (or come from the SDK) and be freed by dxfg_EventType_release(); an event allocated by the caller leaks the SDK's strings or corrupts memory. When the last event is not available, the event keeps the values it had (as in Java), but the event created by dxfg_EventType_new() has only its symbol, so the values of the caller's event are lost.
Use dxfg_v4_DXEndpoint_createWithRole(), which does the same: the name of this function promises the singleton of the Java DXEndpoint.getInstance(Role), which it does not return. Deprecated since 3.16.0, removed in 4.0.0.