Click here to Skip to main content
15,918,624 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General/Change the CEdit caret Pin
Eugene Pustovoyt9-Sep-02 1:17
Eugene Pustovoyt9-Sep-02 1:17 
GeneralRe: /Change the CEdit caret Pin
Tomasz Sowinski9-Sep-02 1:24
Tomasz Sowinski9-Sep-02 1:24 
GeneralRe: Change the CEdit caret Pin
Eugene Pustovoyt9-Sep-02 1:29
Eugene Pustovoyt9-Sep-02 1:29 
GeneralRe: Change the CEdit caret Pin
Tomasz Sowinski9-Sep-02 1:41
Tomasz Sowinski9-Sep-02 1:41 
GeneralRe: Change the CEdit caret Pin
Eugene Pustovoyt9-Sep-02 1:58
Eugene Pustovoyt9-Sep-02 1:58 
GeneralRe: Change the CEdit caret Pin
Tomasz Sowinski9-Sep-02 2:01
Tomasz Sowinski9-Sep-02 2:01 
GeneralRe: Change the CEdit caret Pin
Eugene Pustovoyt9-Sep-02 2:14
Eugene Pustovoyt9-Sep-02 2:14 
QuestionMemory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 1:12
Jawache9-Sep-02 1:12 
I seem to have started to generate memory leaks,

really frustrating ones. I think something very strange is going on.

For Example:
in my Splitter class i declare a sub splitter,

m_pwndSplitter = new CJEXSplitter;

it says this is the source of the memory leak but i definately delete it in the destructor:

CJEXSplitter::~CJEXSplitter()<br />
{<br />
	// Get Window Sizes and Store in Registry<br />
	int iTemp = 0;<br />
	GetColumnInfo(0,m_szFromLeft,iTemp);<br />
	m_pwndSplitter->GetRowInfo(0,m_szFromTop,iTemp);<br />
	CWinApp * pApp = AfxGetApp();<br />
	pApp->WriteProfileInt(_T("SPLITTER"),_T("FROMLEFT"),m_szFromLeft);<br />
	pApp->WriteProfileInt(_T("SPLITTER"),_T("FROMTOP"),m_szFromTop);<br />
<br />
<br />
<br />
	if (m_pwndSplitter) <br />
		delete m_pwndSplitter;<br />
<br />
}


but then it starts saying i have other memory leaks in places I haven't touched like
in my CMainFrame class at
IMPLEMENT_DYNCREATE(CMainFrame, CUIMainFrame)
and in my document class
IMPLEMENT_DYNCREATE(CExplorerDoc, CDocument)

the killer for me is that it says theres a memory leak here to:-
pDocTemplate = new CSingleDocTemplate(<br />
    IDR_MAINFRAME,<br />
    RUNTIME_CLASS(CExplorerDoc),<br />
    RUNTIME_CLASS(CMainFrame),       // main SDI frame window<br />
    RUNTIME_CLASS(CExplorerView));


whats going on have i gone mad?!?


Asim Hussain
e: asim@jawache.net
w: www.jawache.net
AnswerRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 1:25
Tomasz Sowinski9-Sep-02 1:25 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 1:39
Jawache9-Sep-02 1:39 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 1:46
Tomasz Sowinski9-Sep-02 1:46 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 2:09
Jawache9-Sep-02 2:09 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 2:11
Tomasz Sowinski9-Sep-02 2:11 
AnswerRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Roger Allen9-Sep-02 1:49
Roger Allen9-Sep-02 1:49 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 1:56
Jawache9-Sep-02 1:56 
AnswerRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Pavel Klocek9-Sep-02 1:52
Pavel Klocek9-Sep-02 1:52 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 1:59
Jawache9-Sep-02 1:59 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 2:07
Tomasz Sowinski9-Sep-02 2:07 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 2:13
Jawache9-Sep-02 2:13 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 2:19
Tomasz Sowinski9-Sep-02 2:19 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 2:22
Jawache9-Sep-02 2:22 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 2:26
Tomasz Sowinski9-Sep-02 2:26 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 2:39
Jawache9-Sep-02 2:39 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Tomasz Sowinski9-Sep-02 2:43
Tomasz Sowinski9-Sep-02 2:43 
GeneralRe: Memory Leaks in IMPLEMENT_DYNCREATE?!?!?!? Pin
Jawache9-Sep-02 2:53
Jawache9-Sep-02 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.