Jonathan Huang - 2017-10-30

I defined a FB to extend a interface(e.g. MC_KIN_REF) and implemented the FB block external under codesys runtime toolkit。 But I got two exceptions when I called any method of the FB by the interface.
1509369815: Cmp=CmpIecTask, Class=8, Error=81, Info=3, pszInfo=#### EXCEPTION [<excpt>AccessViolation</excpt>] occurred: App=
[<app>Application</app>], Task=[<task>PlanningTask</task>]
1509369815: Cmp=CmpIecTask, Class=8, Error=81, Info=3, pszInfo=#### SOURCEPOSITION App=[<app>Application</app>] area=3<
/area>, offset=<off>90</off>

who can help me to solve this problem?

my code:
var
xx : TestOOP.POU;
yy , zz, aa: TRAFO.MC_KIN_REF_SM3;
a, aRef : TRAFO.AXISPOS_REF;
f : SM3_Math.SMC_Frame;
cd : TRAFO.CONFIGDATA;
numaxis, numaxisx : UDINT;
sizeStruct : UDINT;
exc : __SYSTEM.ExceptionCode;
END_VAR

xx();
xx.AxesToCartesian(f := f,cd := cd, a := a);
numaxisx := xx.NumAxes;
yy := xx;

__TRY
numaxis := yy.NumAxes;
yy.AxesToCartesian(f :=f, cd := cd, a := a);
yy.CartesianToAxes(a := a, f := f, cd := cd, aRef := aRef);
__CATCH(exc)
codeId := 200;
__FINALLY
codeId := 3;
__ENDTRY。