when is the object destuctor called?

Johan Granberg lijat.meREM at OVEgmail.com
Mon May 22 15:00:35 PDT 2006


Tom S wrote:
> Derek Parnell wrote:
>> I use the same technique. The idea that the only resource a ctor/dtor 
>> manages is RAM is plainly short-sighted.
Agrees.
> As for the texture example, they should be freed by some sort of a 
> manager anyway - they have to be released before the rendering device 
> anyway...
Ok I think I get it. The destructors should only bee used when objects 
is deleted manually. right?

But the answers in the thread raises another question.

> - they have to be released before the rendering device 
> anyway...
Does this implies that the operating system does not reclaim video memory
at program exit? I have assumed that was the case but the answers in 
this thread left me uncertain.

Thanks for answering everybody.



More information about the Digitalmars-d mailing list