elliotwoods/VVVV.Nodes.EmguCV — Issue #22: Threading issue?
Author: elliotwoods
Created: 2011-11-18 03:43:54+00:00
State: open

Get an issue allocating images in OpenNI's Image node
Is likely to be a common issue

Happens on first initialise (but only under certain conditions)

ImageRGB throws:

System.TypeInitializationException was unhandled by user code
Message=The type initializer for 'Emgu.CV.CvInvoke' threw an exception.
Source=Emgu.CV
TypeName=Emgu.CV.CvInvoke
StackTrace:
at Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IPL_DEPTH depth, Int32 channels)
at Emgu.CV.Image`2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) in C:\Emgu\emgucv-windows-x86 2.3.0.1416\Emgu.CV\Image.cs:line 259
at Emgu.CV.Image`2..ctor(Int32 width, Int32 height) in C:\Emgu\emgucv-windows-x86 2.3.0.1416\Emgu.CV\Image.cs:line 209
at VVVV.Nodes.EmguCV.ImageUtils.CreateImage(Int32 width, Int32 height, TColourFormat format) in C:\kimchiandchips\VVVV.Research\VVVV.Nodes.EmguCV\src\Utilities\ImageUtils.cs:line 70
at VVVV.Nodes.EmguCV.CVImage.Allocate() in C:\kimchiandchips\VVVV.Research\VVVV.Nodes.EmguCV\src\Image\CVImage.cs:line 76
at VVVV.Nodes.EmguCV.CVImage.Initialise(Size size, TColourFormat format) in C:\kimchiandchips\VVVV.Research\VVVV.Nodes.EmguCV\src\Image\CVImage.cs:line 34
at VVVV.Nodes.OpenNI.OpenNIImageNode.Evaluate(Int32 SpreadMax) in C:\kimchiandchips\VVVV.Research\VVVV.Nodes.OpenNI\OpenNI\OpenNIImageNode.cs:line 104
InnerException: System.DllNotFoundException
Message=Unable to load DLL 'opencv_core231': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Source=Emgu.CV
TypeName=""
StackTrace:
at Emgu.CV.CvInvoke.cvRedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)
at Emgu.CV.CvInvoke..cctor() in C:\Emgu\emgucv-windows-x86 2.3.0.1416\Emgu.CV\PInvoke\CvInvoke.cs:line 59
InnerException: