cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to get error message string

je4
Sightseer
Hi!

I'm trying to print out the string of the an ovrErrorInfo like this:

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;
}

However,
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#ad6f8510ae33e59a2eb061d1cf7f... ? 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

0 REPLIES 0