各位好,我在国外网站贴了一个问题,但是没有人能够回复:
希望国内能有高手给我看看。
Title:
Application(calling DirectShow API) hangs when entering IMediaControl::Stop() , this happens only in PCs with Quad-core(4-core) CPU
The application is a video camera application where video stream comes from the USB camera. SampleGrabber is used for still image capture for size from 640X480 to 10MB.
1. The application has too modes:
Preview mode with Source Filter to Render Filter (2 filters)for dispaly.
Still mode with Source Filter to SampleGrabber filter then to NullRender filter(for image saving).
2. From time to time, these two modes are switching when the GUI command was issues by user for still image capture. After image capture, it is returned to preview mode again. Per the mode switching, the Filter Graph is stop via calling IMediaControl::Stop method for the new graph filter setting up with format and size and filters groups.
3. The applicaiton is running very well in most of the PCs, from signle core to Dual Core desktops, and laptops. We 've one PC Workstation installed with WinXp SP2, namely the Dell T7400 model which is Quad-core CPU. Another Quad-core CPU desktop of my friend in other location confirms this problem as well. It is been traced to locate that the PC system hangs in very high frequency, almost 90% when swithing mode, ie. capture command is enterring.
Very thankful if you could help!
Youcheng
希望国内能有高手给我看看。
Title:
Application(calling DirectShow API) hangs when entering IMediaControl::Stop() , this happens only in PCs with Quad-core(4-core) CPU
The application is a video camera application where video stream comes from the USB camera. SampleGrabber is used for still image capture for size from 640X480 to 10MB.
1. The application has too modes:
Preview mode with Source Filter to Render Filter (2 filters)for dispaly.
Still mode with Source Filter to SampleGrabber filter then to NullRender filter(for image saving).
2. From time to time, these two modes are switching when the GUI command was issues by user for still image capture. After image capture, it is returned to preview mode again. Per the mode switching, the Filter Graph is stop via calling IMediaControl::Stop method for the new graph filter setting up with format and size and filters groups.
3. The applicaiton is running very well in most of the PCs, from signle core to Dual Core desktops, and laptops. We 've one PC Workstation installed with WinXp SP2, namely the Dell T7400 model which is Quad-core CPU. Another Quad-core CPU desktop of my friend in other location confirms this problem as well. It is been traced to locate that the PC system hangs in very high frequency, almost 90% when swithing mode, ie. capture command is enterring.
Very thankful if you could help!
Youcheng