mbaat Posted August 5, 2020 Share Posted August 5, 2020 Hi I'm getting an error and application quits immediatly: NullReferenceException: Object reference not set to an instance of an object Vive.Plugin.SR.ViveSR_DualCameraImagePlane.OnApplicationQuit () (at Assets/ViveSR/Scripts/ViveSR_DualCameraImagePlane.cs:655) I'm using Unity 2019.3.13f1 and SRSDK 0.9.3.0 running the ViveSR_sample scene. Has anyone else experienced this? @Daniel_Y Link to comment Share on other sites More sharing options...
mbaat Posted August 5, 2020 Author Share Posted August 5, 2020 I think the main problem is that the runtime exits immediately when i try to run it... Link to comment Share on other sites More sharing options...
Tony PH Lin Posted October 15, 2020 Share Posted October 15, 2020 Hi @mbaat, SRWorks has new update to 0.9.7.1. Please visit and download from the link. https://developer.vive.com/resources/vive-sense/sdk/vive-srworks-sdk/0971/ Thanks. Link to comment Share on other sites More sharing options...
walshjupes Posted September 27, 2021 Share Posted September 27, 2021 NullReferenceException means that you are trying to use a reference variable whose value is Nothing/null . When the value is Nothing/null for the reference variable, which means that it is not actually holding a reference to an instance of any object that exists on the heap. string str = null; str.ToUpper(); Above c# code throws a NullReferenceException at the second line because you can't call the instance method ToUpper() on a string reference pointing to null. So, check your code once again. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now