- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am able to run the app using unity Default player.
But once i package the app into executable and run it.
It shows exception at
_sts=SenseManager.Init(); call of SenseToolkikManager.cs
and it shows following exception:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DockArea.OnGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/DockArea.cs:601)
PXCMSenseManager:PXCMSenseManager_Init(IntPtr, IntPtr)
PXCMSenseManager:Init(Handler)
PXCMSenseManager:Init()
RSUnityToolkit.SenseToolkitManager:OnEnable() (at Assets/RSUnityToolkit/Internals/RealSenseInput/SenseToolkitManager.cs:329)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That error can come from calling Getcomponent on the 'wrong' GameObject - you need to call it on the component associated GameObject
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kindly note that,
It is working completely fine(including Gesture Detection) using unity Player. But when i compile it into a binary it stops working and logs the above exception.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You might look for that error at answers.unity3d.com - there's one here:
http://answers.unity3d.com/questions/157415/editor-script-nullreference-after-simple-script-ex.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think i fixed the issue by compiling the code to be for 32 bit Platform. Thanks for your persuasion and time. :)

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page