Re: [gtk-list] Re: Destroying windows & widgets -- anybody?



Scratch that... found my error, I was calling a method of a null class
pointer.

At any rate:

> The templates are probably pointless in retrospect since it works on any
> void*; I don't remember why I did it that way. 

The reason you did it as a template is so that you call the proper class
destructor for the objects on the Muncher list, not just the (void)
destructor.

I think I have a Muncher<T> working.

Thank you for your suggestion.

-Rob

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
==== Rob Knop ===== rknop@lbl.gov ====== http://panisse.lbl.gov/~rknop ======



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]