Bitmap region already locked


#1

Hi, I am using the csharp-sample-app as a basis for writing a custom program (that also integrates tcp socket) and after a while I get an error with a “bitmap region already locked” message. The videoForm window then shows a blank white rectangle (instead of camera feed with face features) but the actual emotion detection still runs and works.

In the sample program ProcessVideo.cs I found a couple of commented-out lines involving rwLock.AcquireReaderLock() and rwLock.ReleaseWriterLock(), could these have something to do with my issue?

Basically I would like to be able to query Affdex about the presence of faces and detected emotions, I’m doing this by accessing the videoForm.faces object.

Thanks!