Forum Discussion
10 years ago
Not able to get error message string
Hi!
I'm trying to print out the string of the an ovrErrorInfo like this:
So why do I not get an errorString as described here: https://developer3.oculus.com/doc/1.7.0-libovr/_o_v_r___c_a_p_i_8h.html#ad6f8510ae33e59a2eb061d1cf7f88a91 ? Am I doing something wrong or is it a bug?
Note, that the problem is not the LibLoad-error itself but that fact that I'm not able to receive and print the error message for my users!
Thanks for your help!
je4
I'm trying to print out the string of the an ovrErrorInfo like this:
However,ovrResult result = ovr_Initialize(nullptr);
if (OVR_FAILURE(result))
{
ovrErrorInfo errorInfo;
ovr_GetLastErrorInfo(&errorInfo);
std::cerr << "Error: ovr_Initialize failed:" << errorInfo.ErrorString << std::endl;
return;
}
errorInfo.ErrorStringis always empty, whereas errorInfo.Resultis -3001.So why do I not get an errorString as described here: https://developer3.oculus.com/doc/1.7.0-libovr/_o_v_r___c_a_p_i_8h.html#ad6f8510ae33e59a2eb061d1cf7f88a91 ? Am I doing something wrong or is it a bug?
Note, that the problem is not the LibLoad-error itself but that fact that I'm not able to receive and print the error message for my users!
Thanks for your help!
je4
No RepliesBe the first to reply
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
- 6 months ago
- 3 years ago