activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Chekan" <kot.bege...@gmail.com>
Subject Re: NMS: Dispose usage
Date Fri, 31 Oct 2008 01:59:18 GMT
There is no visible errors, and I don't know if it really can harm,
but why chance it? :)
Exceptions happening in destructors are suppressed by GS as far as I know.

Vadim.

On Wed, Oct 29, 2008 at 12:58 PM, Jim Gomes <e.semog@gmail.com> wrote:
> Thanks, Vadim.  Let me take a look at it and see what's going on.
>
> In the meantime, can you reproduce an error with the code as it is
> currently written?
>
>
> On 10/28/08, Vadim Chekan <kot.begemot@gmail.com> wrote:
>> I noticed that all over NMS code the Dispose(bool) is implemented so
>> that it will call Close() regardless either it is called from
>> destructor or Dispose().
>> As result, if it is called from destructor, an object will call its
>> member disposeOf() when there is no guarantee that this member still
>> exist.
>> I think all Close() should be called from "if(disposing)".
>>
>> Vadim.
>>
>> --
>> From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
>> is explicitly specified
>>
>



-- 
>From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
is explicitly specified

Mime
View raw message