I know. And it is.
Meanwhile i think the cause of the errors is not the method that returns the record. It is the record itself.
The record contains several strings, some byte-Variables and some char-variables. If i comment out the char variables the returning of the values is working as expected., Only when the record contains char-variables i get those access violations.
Can you make a guess why char variables in the record cause an access violation?
Thanks in advance,
Ralf