Now that I have the Modbus issue under control, I’ve moved on to the HMI side of things. I’ve set up a fairly simple screen with some LED icons, switches, and a bar-graph indicator. After a few minutes of running, the screen stopped responding. I tried to close it but it was unresponsive. Upon opening the task manager, I saw that the memory was almost maxed out (~98%). Stopping PAC Display from the Applications tab didn’t free up the memory, but killing the process returned the used memory to a more reasonable level (~44%). I fired PAC Display back up to verify the behavior, and sure enough, it started creeping back up. I took a screen shot just after killing the process (again) to show the behavior trend:
Is there something I should/shouldn’t be doing here? I found an issue with a memory leak related to tables of strings, but I’m not doing anything like that (as far as I know).
I’ll attach my code just as soon as I figure out how to manage attachments.