Error Demo and Compiler Source

Oct 9, 2008 at 7:02 AM
hi

i'm using VS2005 and .net3.5 ...

and no execute demo file executable and compile Source example...

System.AccessViolationException was unhandled
  Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
  Source="System.Drawing"
  StackTrace:
       at System.Drawing.SafeNativeMethods.Gdip.GdipGetImageThumbnail(HandleRef image, Int32 thumbWidth, Int32 thumbHeight, IntPtr& thumbImage, GetThumbnailImageAbort callback, IntPtr callbackdata)
       at System.Drawing.Image.GetThumbnailImage(Int32 thumbWidth, Int32 thumbHeight, GetThumbnailImageAbort callback, IntPtr callbackData)
       at TouchlessLib.TouchlessMgr.CaptureCallbackProc(Int32 dataSize, Byte[] data)


Coordinator
Oct 9, 2008 at 7:49 PM
Unfortunately, I'm not sure what's causing this access violation.
Which projects have you compiled from source code, and which have you used the release binary?
I recommend that you try the release build and ensure that your hardware/driver configuration works with Touchless before compiling the code yourself.
Oct 25, 2008 at 6:02 PM
Hi,

I get a similar error, each time I try to run the Touchless Demo:

AppName: touchlessdemo.exe      AppVer: 1.0.0.0     AppStamp:48e95946
ModName: gdiplus.dll      ModVer: 5.1.3102.5581      ModStamp:4804ea0c
fDebug: 0       Offset: 00057071

I'm using an older, cheap webcam from "Genius" (which works perfectly with Skype, Live Messenger and every other software I've tried).
The error appears, when the webcam loads it's image.
Thanks fpr your help, I can post additional Information if you need more.

Coordinator
Oct 26, 2008 at 12:50 AM
Hi Figigo2,

That's curious; I'm not sure exactly what's happening. I'm guessing you've extracted the demo binaries properly.
Please let me know what OS you are using, what version of .NET you have, and anything about your setup that might be non-conventional.
If you are able, please also try another webcam. I apologize that I don't really know offhand, but I hope we can solve your problem.
If any community members have seen this error, please feel free to help.

- Mike
Oct 26, 2008 at 1:12 AM
Edited Oct 26, 2008 at 1:18 AM
Hi Mike,

I'm using Windows XP Home SP3 (all updates) German Version (which explains my englich ;), .NET Framework 3.5
AMD Athlon 3700+ and 1 GB Memory.
The Webcam is controlled by a driver called "VideoCAM Look" . I've installed Antivir, Spybot Search & Destroy and Microsoft Visual C# 2008 Express Edition.
Beside that, I don't think that there's anything more to say about my PC, all hardware diagnosis programs don't show any problems.

I'll be able to try another webcam on Monday and post my results here.

Richard

Edit: When the Demo crashes, the Windows "event viewer" shows the following (I try to translate it..)
Event Source:    .NET Runtime 2.0 Error Reporting
Event Category:    Keine
N° of the event::    1000
Date:        26.10.2008
Time:        02:15:54
User:        Not applicable
Computer:    RICHARD
Description:
Faulting application touchlessdemo.exe, version 1.0.0.0, stamp 48e95946, faulting module gdiplus.dll, version 5.1.3102.5581, stamp 4804ea0c, debug? 0, fault address 0x00057071.

For further information, please visit: http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 00 70 00 70 00 6c 00   A.p.p.l.
0008: 69 00 63 00 61 00 74 00   i.c.a.t.
0010: 69 00 6f 00 6e 00 20 00   i.o.n. .
0018: 46 00 61 00 69 00 6c 00   F.a.i.l.
0020: 75 00 72 00 65 00 20 00   u.r.e. .
0028: 20 00 74 00 6f 00 75 00    .t.o.u.
0030: 63 00 68 00 6c 00 65 00   c.h.l.e.
0038: 73 00 73 00 64 00 65 00   s.s.d.e.
0040: 6d 00 6f 00 2e 00 65 00   m.o...e.
0048: 78 00 65 00 20 00 31 00   x.e. .1.
0050: 2e 00 30 00 2e 00 30 00   ..0...0.
0058: 2e 00 30 00 20 00 34 00   ..0. .4.
0060: 38 00 65 00 39 00 35 00   8.e.9.5.
0068: 39 00 34 00 36 00 20 00   9.4.6. .
0070: 69 00 6e 00 20 00 67 00   i.n. .g.
0078: 64 00 69 00 70 00 6c 00   d.i.p.l.
0080: 75 00 73 00 2e 00 64 00   u.s...d.
0088: 6c 00 6c 00 20 00 35 00   l.l. .5.
0090: 2e 00 31 00 2e 00 33 00   ..1...3.
0098: 31 00 30 00 32 00 2e 00   1.0.2...
00a0: 35 00 35 00 38 00 31 00   5.5.8.1.
00a8: 20 00 34 00 38 00 30 00    .4.8.0.
00b0: 34 00 65 00 61 00 30 00   4.e.a.0.
00b8: 63 00 20 00 66 00 44 00   c. .f.D.
00c0: 65 00 62 00 75 00 67 00   e.b.u.g.
00c8: 20 00 30 00 20 00 61 00    .0. .a.
00d0: 74 00 20 00 6f 00 66 00   t. .o.f.
00d8: 66 00 73 00 65 00 74 00   f.s.e.t.
00e0: 20 00 30 00 30 00 30 00    .0.0.0.
00e8: 35 00 37 00 30 00 37 00   5.7.0.7.
00f0: 31 00 0d 00 0a 00         1.....  

Oct 26, 2008 at 7:42 PM
It worked with the SplitCam Driver from http://www.splitcamera.com/ - I think it was a hardware-related problem
Coordinator
Oct 26, 2008 at 10:57 PM
Richard,

I'm glad you were able to figure this out. Did you use the SplitCam driver with the same webcam, or another webcam?
Touchless uses Directshow to connect to webcams, and 1%-5% of webcams that are incompatible.
I'd be interested to know if some webcams work with one driver but do not work with another drvier.

- Mike
Oct 27, 2008 at 8:50 PM
Hi Mike,

I used the SplitCam driver with the same webcam that doen'st work with its own driver. It seems that Touchless has problems with the original webcam driver Genius VideoCAM Look 1.0 (but as Genius is a low-price company, there is a lot of doubt about the exact manufacturers of the camera and its drivers: The Windows device manager names "Sonix" as the driver manufacturer and Version 4.7.5.4.

I hope these informations might help you developping Touchless

Richard
Nov 2, 2008 at 7:45 AM
Hi!
I have problems with running the demo on my PC (XP SP3, P4-3.0 GHz, RAM 2 GB, nVidia GForce 7300, Genius VideoCAM Look 2.0, NET Frameworks 1.1, 2.0-SP1, 3.0, 3.5). The application starts and I can see video for 1 or 2 seconds. Than the app crashes. If I re-start the demo it sometimes shows the following message:  Unable to start camera. rc = -2147023792. I think it would be nice if the demo could make a log file so that one could see what went wrong.
I'm sorry for my english. It's not my native language.
Michael.
Coordinator
Nov 2, 2008 at 9:28 AM
Hi Michael,
I'm sorry that Touchless crashes for you. Your computer specs look fine, but I can't vouch for any particular webcam.
The message on restart appears because the previous crashed process hasn't yet freed it's lock on the camera.
Try using the debug version (recent binaries in source here); that might show the exception being thrown.
Or, if you could debug the process and grab a callstack for the crash, that would also help a lot.
Adding a crash log sounds like a good idea. I've added an Issue Tracker item; please vote for it.
- Mike
Nov 2, 2008 at 2:51 PM
Hi Mike.
I will try to trace what happens with it as long as I get to my workstation with Visual Studio 2005 at my work. If I manage to find anything I'll post here. Unfortunately I have only that Genius camera and can't run the demo with some other device. I suspect that the trouble is specific to this type of  Genius cameras. I tried two versions of Genius drivers: 1.0 and 2.0 with the same result.