We are seeing some strange behavior just after RDM dictionary is loaded – some fields of dictionary entries contain incorrect values.
The facts:
- the dictionary is loaded within a static library;
- in unit tests for that library, all fields contain correct values;
- error only reproduced when the library linked against production executable.
Output from the unit tests( the correct one):
RDM dictionary successfully loaded: 14471 entries
fid=32650: acronym=QUERY, ddeAcronym=REQUEST QUERY, fid=32650, rippleToField=0, fieldType=5, length=5100, enumLength=0, rwfType=19, rwfLength=5100
fid=4271: acronym=GUID, ddeAcronym=GLOBAL UNIQUE ID, fid=4271, rippleToField=0, fieldType=5, length=255, enumLength=0, rwfType=19, rwfLength=255
fid=12794: acronym=MET_TF_U, ddeAcronym=METRIC TM FRAME UT, fid=12794, rippleToField=0, fieldType=6, length=3, enumLength=8, rwfType=14, rwfLength=1
Output from the provider exec ( the incorrect one):
RDM dictionary successfully loaded: 14471 entries
fid=32650: acronym=QUERY, ddeAcronym=REQUEST QUERY, fid=32650, rippleToField=0, fieldType=5, length=4864, enumLength=236, rwfType=19, rwfLength=0
fid=4271: acronym=GUID, ddeAcronym=GLOBAL UNIQUE ID, fid=4271, rippleToField=0, fieldType=5, length=4864, enumLength=255, rwfType=0, rwfLength=0
fid=12794: acronym=MET_TF_U, ddeAcronym=METRIC TM FRAME UT, fid=12794, rippleToField=0, fieldType=6, length=3592, enumLength=1, rwfType=0, rwfLength=0
Does anyone have any idea what might be the problem?