Forum Discussion
cybereality
12 years agoGrand Champion
Minimal Oculus Application Tutorial
Hey guys! I put together this simple tutorial, showing the bare minimum code needed to work with the Oculus SDK. https://developer.oculus.com/wiki/index.php?title=Minimal_Oculus_Application I...
Gookanheimer
12 years agoExplorer
After a little more poking around, it seems like it's coming from the DeviceManager's Clear() function. Commenting out just that line and leaving the sensor and HMD ones in gives me no problem.
Stepping through in the debugger, the only difference I've seen is that for the other two, when it ends up in OVR_DeviceImpl.cpp refCount is 1 and they seem to go through things ok. They both enter into the first branch of an If statement at line 650 and it all seems to work out fine. But when DeviceManager gets there, refCount is 3 which makes it skip to the other branch of the If statement at line 670, which then decrements refCount to 2 before exiting the function completely. Seems like this could maybe be the problem area? I'm not really sure what to do about it though, I'm very much noob. It kind of looks like it should be looping until refCount gets decremented to 1 so that that first branch is entered, but I don't know.
Stepping through in the debugger, the only difference I've seen is that for the other two, when it ends up in OVR_DeviceImpl.cpp refCount is 1 and they seem to go through things ok. They both enter into the first branch of an If statement at line 650 and it all seems to work out fine. But when DeviceManager gets there, refCount is 3 which makes it skip to the other branch of the If statement at line 670, which then decrements refCount to 2 before exiting the function completely. Seems like this could maybe be the problem area? I'm not really sure what to do about it though, I'm very much noob. It kind of looks like it should be looping until refCount gets decremented to 1 so that that first branch is entered, but I don't know.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 3 months ago
- 2 years agoAnonymous
- 3 months ago