freeing objects memory leak and common controls
Posted on 2000-05-17
I have an activeX dll with a routine as follows below.
After my app runs for a while, draw glitches start to happen i.e. text that should be drawn by my routine (below) are not drawn.
About this time, the
icons and text in the File/Save dialog box are screwy. Other apps on the
win98 machine have their file/save dialog boxes screwed too. We have
installed the latest 50comctl common controls, so they should be ok.
I have NO problems on my own NT development machine, and furthermore,
process viewer & task manager indicate normal memory usage, even when I
stress the app with dozens of nodes. Its the Win98 Acer laptop machine that has the troubles.
I don't explicitly free stlStrings, logFont, andyFont or res is this a problem? Other ideas on what might be going on?
using namespace std;
TSRect CNodeViewReason2::draw3texts(TSEDC & rDC, TSEFontSelector * pFontSelector, string s1,string s2,string s3)
font().GetObject(logFont); // font() returns a TSEFont object
// looping quite a bit
// I don't explicitly free stlStrings, logFont, andyFont or res
// is this a problem?