сейчас далеко от ПК чтоб проверить, но умные мужики пишут, что еще INI надо сразу использовать:VAR
pinst : POINTER TO FBTest;
END_VAR
IF bInit THEN
bInit := FALSE;
pinst := SysMemAlloc(SIZEOF(pinst^)); (*allocation of bytes*)
bDummy := INI(pinst^, TRUE); (*initialisation of instance*)
END_IF
pinst^(a := l, b := m, c := n, x => l, y => m, z => n);тоже про катастрофу пишутSo, in principle, its possible. One Problem is, that you have to take care that the memory is freed again, and that's a problem, because on the next download SysMemFree won't be called automatically.
An online change on FBTest by changing the Interface would lead to a crash




Ответить с цитированием