UPDATE: Mystery solved, thanks for your help guys.
Been running my updated grain harvest database program. The machine generally sits in the drying room waiting for a truck to come in and someone to enter data. This might occur a couple times an hour to a couple hours between. I updated the program to use four 32 bit display screens and colors, loading 10 button images that range from roughly 2 to 20 kB each in the main module. Once in the program's display/input loop only _PUTIMAGE is used, repeatedly, along with general print, locate and a couple line statements. The basic data handling algorithm has remained largely unchanged and always worked for hours on end before. Only the main display screen is called for updating while awaiting some form of input. All the _PUTIMAGE commands occur during this looping.
After running unattended for somewhere around an hour or two the following error consistently occurs:
A small dialog box with:
"Critical error..." < in the top bar
"Out of Memory" < in the main part of the box
followed by an OK button.
It's never actually happened when I was around to witness it. I ran it this morning and went to church, was gone for a good 2 hours + and true to its M.O., it was stopped when I returned. I don't relish the idea of sitting and staring at it until it occurs...
I opened Notepad to compose this post and it would open, but the dialog box remained on top and until I clicked the OK button; vanquishing both the dialog and my program that caused it, I could do nothing with Notepad.
I've poured over what I believe to be the salient code and can't find an issue so far. The main display/input loop was running _LIMIT 200 and I reasoned that if the program were loading up memory with something while looping unattended, changing to a slower limit value would alter the time it took to throw the error. Does that sound like a reasonable test?
Yesterday I did that. After changing to _LIMIT 30, the program still threw the error around an hour or two. Now I'm wondering if something in the operating environment is to blame. I'm running Windows 10 Home 1803 64bit on a Lenovo Ideapad 330S Core I5 w/ 8GB RAM. QB64 is version 1.2 20180202/85. Sleep modes are disabled while the machine is plugged in.
Does anyone have any experience or insight regarding this issue? I'm nearing the end of my rope...
My next move is to run the application on another system and see if the same thing happens.