Joey Mukherjee wrote:
[snip - create an instance based on file data]
> delete science;
> delete housekeeping;
> delete telemetry;
> Since the file pointer is essentially shared with all three classes, the
> ifstream * defined in the base pointer will get deleted too many times.
> What is the best way to handle this problem? I cannot move the specific
> stuff into the classes which the FAQ suggests.
Set the file pointer to NULL in your destructor after you delete it?
/david
--
Andre, a simple peasant, had only one thing on his mind as he crept
along the East wall: 'Andre, creep... Andre, creep... Andre, creep.'
-- unknown
|