I've got a nearly repeatable critical issue on my project.
I'm using the standard RS-232 Library for a very straight-forward application with an SRS RGA (gas analyzer). That half of this effort works very well, very ordered and non-mysterious.
But then I tip-toed into the multi-thread world using the CMT to facilitate the instrument's rather slow retrieval of histogram and analog scans.
I opted for thread-safe queues, as they seemed to have the lowest cost-to-entry and smallest setup. I'm doing nothing fancy here, merely creating a queue each time a histogram is needed, filling it with data and elsewhere reading the data from queue and plotting.
Yet, under certain circumstance, I get very often get BSODs:
I did some research on "ser2pl64.sys" and see that it's my serial-to-USB cable. I swapped this out, no affect.
I've done many projects now with the RS-232 Library and never, ever seen such hard errors like this. I really feel that I've done some poor housekeeping with the CMT, as this is my first project to use that lib. Yet, as far as I can tell, I'm flushing and discarding it when done.