Exemplo n.º 1
0
        /// <summary> _release
        ///
        /// Private implementation of preserve() method.
        /// This method will be invoked from Native code
        /// to change the TclObject's ref count without
        /// effecting the ref count of a CObject.
        /// </summary>
        private void _release()
        {
            refCount--;
            if (refCount <= 0)
            {
                internalRep.dispose();

                // Setting these to null will ensure that any attempt to use
                // this object will result in a Java NullPointerException.

                internalRep = null;
                stringRep   = null;
            }
        }