J
jlyin
Unregistered / Unconfirmed
GUEST, unregistred user!
有窗口DLL,用于数据通讯
unit RDCMDef;
interface
//const ChnoSum=5610;//(132 div 6)*255;
type
TOneDL=Record //µçÁ¿Ã¿¸öµãµÄÖµ
SerialNo:Word;
ArmID:Word;
ChnoID:Byte;
ZX:Integer; //ÕûÊý
XS:Word; //СÊý
ErrState:Byte;//¹ÊÕÏ״̬
end;
TDL=Record
PackCount:Byte;
AllDL:array[0..255*22-1] of TOneDL;
end;
implementation
end.
如果ALLDL用动态数组,第一次调用没问题
多次调用就出异常了;改用定长数组就不会;
加上ShareMem单元 {in Borlndmm.dll}也不行
unit RDCMDef;
interface
//const ChnoSum=5610;//(132 div 6)*255;
type
TOneDL=Record //µçÁ¿Ã¿¸öµãµÄÖµ
SerialNo:Word;
ArmID:Word;
ChnoID:Byte;
ZX:Integer; //ÕûÊý
XS:Word; //СÊý
ErrState:Byte;//¹ÊÕÏ״̬
end;
TDL=Record
PackCount:Byte;
AllDL:array[0..255*22-1] of TOneDL;
end;
implementation
end.
如果ALLDL用动态数组,第一次调用没问题
多次调用就出异常了;改用定长数组就不会;
加上ShareMem单元 {in Borlndmm.dll}也不行