9 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.ErrorString
is always empty, whereas errorInfo.Result
is -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