there's no point keeping two instances open. You might as well dispose the one created in the constructor after you've got the length from it. Also, you will need some kind of locking as the Position setter and Read could run at the same time, meaning that decoderOutputCount and decoderOutputOffset could run at the same time. I'm surprised it lets you access pReaderTh from the GUI thread, but maybe the fact it was created on an MTAThread makes it safe to call from an STAThread.
↧