I thought so Archie.
Godra,
I had not seen that program, thanks for sharing. Still, even if I limit the cpu usage, wouldn’t the application still suffer? The app runs for about a week or two then stops responding or gets really slow. Wouldn’t setting the cpu limit lower just make the app lock up sooner?
I am by means doing any fancy threading in the app. I am using a sound player that plays a small wav file. Depending on how you call it, it will play the file in a separate thread. I am calling it so that it does just that.
The wav file plays when a user has completed scanning all of their parts. A different sound plays if the wrong part is scanned, and another different sound plays on each successful scan.
The sound player is not an AdvancedHMI component, and I can’t remember exactly which one I used.
I would assume that it would handle its threads appropriately though? I wouldn’t need to dispose of the player once it’s finished?