We are using Elektron Message API C++ edition, and have problem with accessing EMA ElementList object after it is created. Below is a very simple code snippet for the usage of the ElementList. Looks like that there is problem with Decoder in the ElementList whis is null and all operation on the element list throws access violation exception:
EmaString st = elementList.toString();
bool b = elementList.hasInfo(); // ----> this line throws an access violation exception
while (elementList.forth()) // ----> this line throws an access violation exception too
Actually whatever operation we call on newly created element list it throws an exception.
Do you know the reason for this? Or is it known issue?
It seems to be restriction of EMA C++ mentioned in section 3.2.3 Data Class from EMA Developer Guide.
The EMA does not support immediately retrieving data from freshly created OMM containers or messages.
Based on the description above, this should be the case you are experiencing.