F
followindy
Unregistered / Unconfirmed
GUEST, unregistred user!
var<br> BMsg, BID: PChar; <br> sMsg, sID: string;<br>begin<br> GetMem(BMsg, 4096);<br> GetMem(BID, 32);<br> xcom_recv(52, BMsg, 4096, BID, ....);<br> sID := StrPas(BID); // 此处编译异常!!!!<br> sID := upperCase(trim(sID));<br> sMsg := StrPas(BMsg); <br> sMsg := upperCase(trim(sMsg));<br> .....<br> FreeMem(BMsg);<br> FreeMem(BID); <br>end; <br><br>错误提示如下: raised exception class EAccessViolation with message'Access<br>violation at address 0040453F in module 'Project1.exe',....<br><br><br>請指教。[][]