This method of the SafeArray Class retrieves the number of outstanding locks on the SafeArray object. This value (which is usually zero) is only useful for debugging purposes.
public int getNumLocks();
Returns the outstanding lock count.