arkansascontrols
Lifetime Supporting Member
I have an SE application that loads multiple copies of the same display (a small process faceplate) with different parameter files for each. If the user selects a different control the displays are unloaded one at a time, and then new displays are loaded based on the user selection.
The issue I'm seeing is that sometimes all of the displays don't completely unload, and the cumulative effect over the course of several days is that there are numerous displays taking up memory (yet not visible).
I've isolated the problem to a Timing issue with command execution. If I put a 2 second pause between unload commands it works most of the time, but even then it sometimes leaves a straggler or two behind.
Ideally, if the command processor would provide some feedback that a command had successfully executed I could condition subsequent abort commands off the previous completion, yet I can find no direct method of doing this other than writing to a memory variable from the Load/Unload subs of the display, which of course only adds an additional delay to processing commands.
Has anyone else had a similar issue? Any suggestions / workarounds / undocumented features that might offer some relief? Any advice is appreciated.
The issue I'm seeing is that sometimes all of the displays don't completely unload, and the cumulative effect over the course of several days is that there are numerous displays taking up memory (yet not visible).
I've isolated the problem to a Timing issue with command execution. If I put a 2 second pause between unload commands it works most of the time, but even then it sometimes leaves a straggler or two behind.
Ideally, if the command processor would provide some feedback that a command had successfully executed I could condition subsequent abort commands off the previous completion, yet I can find no direct method of doing this other than writing to a memory variable from the Load/Unload subs of the display, which of course only adds an additional delay to processing commands.
Has anyone else had a similar issue? Any suggestions / workarounds / undocumented features that might offer some relief? Any advice is appreciated.