public bool GetFailedObjectNumber(out int failedNumber)
{
CheckContextInitialized();
// object can be inserted only when the context is stopped
if(_status != ContextStatus.Stopped) {
throw new Exception("Object can be inserted only when the context is stopped");
}
int result = NativeMethods.GetFailedObjectNumber(_contextId, out failedNumber);
return ValidResult(result);
}