crash on updating record
Aldevinas Katkus
7-19-19
My code crashes on updating customer's record. Why it happens. When I remove the pricelist from the customer in Standard ERP manually (not in HAL) it does not crash. Any ideas why it crashes?
...
2019-07-19 16:26:01 AD delete pricelist AAA from PBESEAGR
2019-07-19 16:26:01 AD delete... pricelist from PBESEAGR
2019-07-19 16:26:01 AD CopyDVP with some KeyMasterArrType touchedf!=false
2019-07-19 16:26:01 AD
2019-07-19 16:26:01 AD dump of call stack
2019-07-19 16:26:01 AD Exiting to protect the database

Code:
ResetLoop(CUr);

CUr.Code=custcode;
if (ReadFirstMain(CUr,1, true)) then begin
RecordCopy(oldCUr, CUr);
end else begin
end;
if (action=="DEL") then begin
LogText(0, "delete pricelist "& CUr.PLCode & " from " & oldCUr.Code);
CUr.PLCode="";
LogText(0, "delete... pricelist from " & CUr.Code);
err=RecordUpdate(oldCUr, CUr,true);//crash here

if (err==0) then begin
...
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Piotr Wycichowski
This is not the issue of upgrade SERP. But serverip.dat in this case contains the value: 192.168.88.12:1301, so this is local IP of the server with SERP. Anyway I don't understand what do you me...
15:30 14 Jan 2025
Brittany McGrath
reply ...
05:10 14 Jan 2025