Set execution priority of AX control?
Posted on 2006-11-12
I have AX control, which controls a digital camera and saves images as JPEG (1 image per second). This JPEG compression loads my CPU significantly and occasionally hangs more important process of CONTINUOUS data acquisition from ADC cards. It would be nice if JPEG compression was performed in a low-priority thread, and won't obstruct more important tasks. AX support said that this AX contol is multithreaded but the source code ids not available for me (proprietary).
Q1: Is it possible to assign lower priority execution for an AX control in my application? For example if I put AX.SaveAsJPEG(...) inside my own thread (with low priority), is it going to lower execution priority of the actual code inside AX control?
Q2: I can put this AX control in a separate imaging program and assign lower priority for that program, but will it going to lower actual priority of the JPEG compresion thread inside this AX control?