- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using C#, STREAM_TYPE_COLOR works fine, and I can see an image, but when I try to use STREAM_TYPE_DEPTH it crashes and tells me it is null. Also, the infrared light does not come on. It is not a problem with the camera though because the depth works fine in the Realsense Viewer program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With a NullReferenceException, I would typically expect it to be related to a reference that is being called but its location has not been defined.
For example, I might ask a program for the value of a variable called MartysNumber, but if I have not told my program where the variable can be found then a NullReferenceException may occur.
It is most likely to occur if the reference being called is stored in a different script.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using Unity and the RealSense Unity Wrapper for your project, please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the response. No, I'm not Unity, just C# and the C# wrapper.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With a NullReferenceException, I would typically expect it to be related to a reference that is being called but its location has not been defined.
For example, I might ask a program for the value of a variable called MartysNumber, but if I have not told my program where the variable can be found then a NullReferenceException may occur.
It is most likely to occur if the reference being called is stored in a different script.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page