bknight2602 Grandmaster Cheater
Reputation: 0
Joined: 08 Oct 2012 Posts: 606
|
Posted: Tue Jul 21, 2026 10:42 am Post subject: Old code indicating access violation |
|
|
I have an older table built with CE not by code. Anyway, with Win 11, I am receiving an access violation when a check box is checked.
| Code: |
boxstateAP = checkbox_getState(CheatPanel_CECheckbox3)
if boxstateAP == cbChecked then
timer_setEnabled(tAP, true)
print("The AP timer is enabled")
form_show(CheatPanel_CEPanel1)
form_show(CheatPanel_CEEdit1)
else
timer_setEnabled(tAP, false)
print("The AP timer is not enabled")
form_hide(CheatPanel_CEPanel1)
form_hide(CheatPanel_CEEdit1)
edit_clear(CheatPanel_CEEdit1)
end
end
|
| Code: |
function ConstAP(sender)
APvalue = tonumber(CheatPanel_CEEdit1.Text);
if (APvalue) then
local entry = getAddressList().getMemoryRecordByDescription("AP Rec From Battle");
AP = entry.value;
entry.value = APvalue
end
end
|
Basically what initially desired was the edit box beside the checkbox was not visible until the checkbox was checked, then a number could be added to the edit box and used in the table. The error shows up when the checkbox is checked and the edit box doesn't become visible. This used to work but when attempted recently fails with Access violation error. There are a number of checkboxes on the panel and they all have a similar code so one fix will have to be used on all of them.
|
|