PDA

View Full Version : Access Violation with TIS UVC Device (DFx 22AUC03) with RGB32 and Sink Overlay



blumenkistl
September 26, 2011, 18:13:41
Does somebody have the same troubles?
When i start the sample application "Sample creating an Overlay" and choose the DFx 22AUC03 device with RGB32 mode, i get an crash. Same with my own application when i start the LiveCaptureContinuous. With all other modes (RGB24, Y800, BY8) everything is working fine.
Do i have to make additional configuration for the Memorybuffer or is it just a bug?
Thanks for all your help,
Gerald Wallner.

Stefan Geissler
September 27, 2011, 16:34:56
Which error message do you receive?

Stefan Geissler
September 27, 2011, 16:36:02
Addition: I would point to a bug.

blumenkistl
October 10, 2011, 19:36:07
with unmanaged code debugging i get following error with the sample "Display Buffer" after the line:
icImagingControl1.LiveStart();

Critical error detected c0000374
First-chance exception at 0x778140f2 in Display Buffer.exe: 0xC0000374: A heap has been corrupted.
The thread 'Win64 Thread' (0x57c) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0xdbc) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0xd0c) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x870) has exited with code -1073740940 (0xc0000374).
The thread 'DShowLib : CDispEventThread' (0x1310) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x10e4) has exited with code -1073740940 (0xc0000374).
The thread 'DShowLib : CMediaEvent Thread' (0x1330) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x112c) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0xb54) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x578) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x610) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x1068) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x1338) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x854) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x1358) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x1378) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0xde8) has exited with code -1073740940 (0xc0000374).
The thread 'DShowLib : CUCBTImpl Thread' (0x1040) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x978) has exited with code -1073740940 (0xc0000374).
The thread 'Win64 Thread' (0x1174) has exited with code -1073740940 (0xc0000374).
The program '[2912] Display Buffer.exe: Native' has exited with code -1073740940 (0xc0000374).
The program '[2912] Display Buffer.exe: Managed (v4.0.30319)' has exited with code -1073740940 (0xc0000374).

maybe this helps.
i think this is rather a problem with the icImagingControl1_ImageAvailable function than with overlay as i mentioned in the subject.

kind regards,
Gerald Wallner.

Stefan Geissler
October 11, 2011, 13:44:09
Hi

I have a question: Did you changed anything in the sample? Which Visual Studio version do you use?
I suppose, you use Windows 7 64 bit, right?

Stefan Geissler
October 12, 2011, 09:24:42
Hello

I tried the sample in Windows 7 64 bit as "Any CPU" with the same camera and RGB32 video format. No problems. But what do you mean by "with unmanaged code debugging"?

Stefan Geissler
October 12, 2011, 09:30:44
Hello,

I also tried


icImagingControl1.OverlayBitmapPosition = TIS.Imaging.PathPositions.Sink;
//icImagingControl1.MemoryCurrentGrabberColorformat = TIS.Imaging.ICImagingControlColorformats.ICRGB24;
icImagingControl1.MemoryCurrentGrabberColorformat = TIS.Imaging.ICImagingControlColorformats.ICRGB32;
icImagingControl1.LiveStart();
icImagingControl1.OverlayBitmapAtPath[TIS.Imaging.PathPositions.Sink].Enable = true;
icImagingControl1.OverlayBitmapAtPath[TIS.Imaging.PathPositions.Sink].DrawText(Color.Red, 50, 50, "Hello");


No problems, no crashes. The image was shown, the "Hello" text visible.

blumenkistl
October 13, 2011, 17:53:47
Hi Stefan,
i am so sorry - i have found the problem: i have installed ffdshow tryouts (i am using ffdshow for encoding my avi stream). when i uninstall this software everything is working fine.
(must now check if there is another version of ffdshow which does not conflict with the IC software)
thank you for your help,
bye,
Gerald.