in reply to Destructor Order

Develop a subclass which takes and saves a reference to the COM port ... should take five or ten lines of code. That way, you're guaranteed that the port exists until the reader is gone.

--
TTTATCGGTCGTTATATAGATGTTTGCA

Replies are listed 'Best First'.
Re: Re: Destructor Order
by tilly (Archbishop) on Apr 03, 2004 at 03:19 UTC
    No, you're not guaranteed of that.

    You are guaranteed unless the object is destroyed in global destruction, which seems to be the case here.