Re: MFC question: is it really necessary to call DeleteObject?
From: Andreas Nicolai <Andreas.Nicolai_at_gmx.net>
Date: 2007-10-10 17:04:23 CEST
Hi again,
On Wed, 10 Oct 2007 01:42:34 -0400, Stefan Küng <tortoisesvn@gmail.com>
> Yes, and that's one of the reasons MyGraph.cpp is slow and can run out
Well, just hacked toghether a chart control a few months ago :-), but
I like the idea of Hans-Werner and will create a wrapper class template
AutoDeleteObject fontObj = AutoDeleteObject<CFont>();
// when fontObj gets out of scope, the DeleteObject() function for the
So the class could be something like...
template <typename T>
public:
T * object() { return &m_theObject; }
Now I'm wondering why Microsoft doesn't have a simple class like that in
Anyway, thanks for the suggestion!
-- Andreas Nicolai anicolai@syr.edu PhD Candidate, M.A.M.E (315) 443-2218 Syracuse University 151 Link Hall Syracuse, NY, 13244 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org For additional commands, e-mail: dev-help@tortoisesvn.tigris.orgReceived on Wed Oct 10 17:28:40 2007 |
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.