i changed the color image resolution from resolution320x240 to resolution640x480, it worked well, when i change it to resolution1280x1024 in the same way, there is an error:
NullReferenceException: Object reference not set to an instance of an object
System.String.memcpy4 (System.Byte* dest, System.Byte* src, Int32 size) (at /Applications/buildAgent/work/c514da0c8183631c/mcs/class/corlib/System/String.cs:2864)
System.String.memcpy (System.Byte* dest, System.Byte* src, Int32 size) (at /Applications/buildAgent/work/c514da0c8183631c/mcs/class/corlib/System/String.cs:2956)
(wrapper unknown) Kinect.ColorBuffer:PtrToStructure (intptr,object)
KinectSensor.extractColorImage (NuiLockedRect buf) (at Assets/Script/Kinect/KinectWrapper/KinectSensor.cs:323)
KinectSensor.Kinect.KinectInterface.pollColor () (at Assets/Script/Kinect/KinectWrapper/KinectSensor.cs:230)
DisplayColor.Update () (at Assets/Script/Kinect/KinectImgControllers/DisplayColor.cs:23)
the error point to —> ColorBuffer cb = (ColorBuffer)Marshal.PtrToStructure(buf.pBits, typeof(ColorBuffer));
how can i fix this error?? is it possible to change to res to 1280x1024 in KinectWrapperPackage ?? thanks!