I’m making a TI-84 Plus CE C program with the CE C SDK and it seems to have a bug. Sometimes, rarely, when I boot the program from Cesium (not sure if that’s important) it boots to a glitchy colorful screen. When I press the reset button, the screen turns white. When I press reset a few more times, the calculator resets as normal. My initialization code is:
Code:
writeVars() is a set of ti_Writes and after that readStorage() is a set of ti-Reads. Is this the issue or is something else causing my crash?
Code:
ti_CloseAll();
ti_Open("APPVAR","a+");
ti_CloseAll();
slot = ti_Open("APPVAR","r+");
if (!slot) {
os_ClrHomeFull();
os_PutStrFull("Not enough storage space for appvar. Free some RAM.");
while(kb_AnyKey()){};
exit(1);
}
if (!ti_GetSize(slot)) {
writeVars();
}
readStorage();
writeVars() is a set of ti_Writes and after that readStorage() is a set of ti-Reads. Is this the issue or is something else causing my crash?