1

Resolved

XAMLibrary.LogVerbosity incorrectly defined

description

XAMLibrary.LogVerbosity is currently defined as follows:
 
    public XString LogVerbosity 
    { 
        get 
        { 
            XString value = new XString(); 
            GetField(Constants.LOG_VERBOSITY, value); 
            return value; 
        }
        set 
        { 
            SetField(Constants.LOG_VERBOSITY, value); 
        }
    }
 
When setting LogVerbosity, a XamException is thrown with the ErrorToken of "xam/field not found".
 
If this property is redefined as:
 
    public long LogVerbosity 
    { 
        get 
        {
            long value = 0;
            GetField(Constants.LOG_VERBOSITY, out value); 
            return value; 
        }
        set 
        { 
            SetField(Constants.LOG_VERBOSITY, value); 
        }
    }
 
Setting this field functions as expected.
 
In section 5.4.1 of the XAM_C_API.PDF document, this field is defined as a xam_string, however other code samples on the web using the Java api treat these fields as int/long.

comments