Click here to Skip to main content
15,914,070 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCComboBox acts like CEdit Pin
john john mackey15-Oct-02 7:14
john john mackey15-Oct-02 7:14 
GeneralRe: CComboBox acts like CEdit Pin
Tomasz Sowinski15-Oct-02 7:23
Tomasz Sowinski15-Oct-02 7:23 
Generalhandlin WM_KILLFOCUS in CWnd-derived Pin
mishgun15-Oct-02 6:23
mishgun15-Oct-02 6:23 
GeneralRe: handlin WM_KILLFOCUS in CWnd-derived Pin
Roger Allen16-Oct-02 2:07
Roger Allen16-Oct-02 2:07 
GeneralLast Thread post for me... Pin
15-Oct-02 6:14
suss15-Oct-02 6:14 
GeneralRe: Last Thread post for me... Pin
jmkhael15-Oct-02 6:32
jmkhael15-Oct-02 6:32 
GeneralRe: Last Thread post for me... Pin
Anonymous15-Oct-02 6:56
Anonymous15-Oct-02 6:56 
GeneralRe: Last Thread post for me... Pin
Jon Hulatt15-Oct-02 6:42
Jon Hulatt15-Oct-02 6:42 
AfxGetThread() returns a CWinThread pointer to the thread that makes the call. From your chunks of code it looks like you are trying to close your main thread from the OnClose() event handler for it, and thus not actually closing your CFtThread object.

I don't know what would happen if you cast a CWinThread pointer to CFtThread; I would have thought something more significant than a memory leak would happen when you try to call members of CFtThread.m_sSocket.

You get given a pointer to your CFtThread as a return from AfxBeginThread(). Try using that to close the thread.

Signature space for rent. Apply by email to....
GeneralRe: Last Thread post for me... Pin
Anonymous15-Oct-02 7:02
Anonymous15-Oct-02 7:02 
GeneralRe: Last Thread post for me... Pin
Jon Hulatt15-Oct-02 21:24
Jon Hulatt15-Oct-02 21:24 
GeneralHere's the memory dump, if it helps.. Pin
Anonymous15-Oct-02 7:29
Anonymous15-Oct-02 7:29 
GeneralRe: Here's the memory dump, if it helps.. Pin
Jon Hulatt15-Oct-02 21:16
Jon Hulatt15-Oct-02 21:16 
GeneralRe: Here's the memory dump, if it helps.. Pin
jhwurmbach15-Oct-02 22:30
jhwurmbach15-Oct-02 22:30 
GeneralRe: Last Thread post for me... Pin
KaЯl16-Oct-02 0:23
KaЯl16-Oct-02 0:23 
GeneralPrint preview and OnClose Pin
-Dy15-Oct-02 4:45
-Dy15-Oct-02 4:45 
GeneralRe: Print preview and OnClose Pin
Tomasz Sowinski15-Oct-02 4:58
Tomasz Sowinski15-Oct-02 4:58 
GeneralRe: Print preview and OnClose Pin
-Dy15-Oct-02 5:31
-Dy15-Oct-02 5:31 
GeneralSCroll bar size Pin
suresh_sathya15-Oct-02 3:30
suresh_sathya15-Oct-02 3:30 
GeneralRe: SCroll bar size Pin
Tomasz Sowinski15-Oct-02 3:41
Tomasz Sowinski15-Oct-02 3:41 
GeneralUse CRecordSet with Access Pin
MyEden15-Oct-02 2:58
MyEden15-Oct-02 2:58 
GeneralRe: Use CRecordSet with Access Pin
Tomasz Sowinski15-Oct-02 3:14
Tomasz Sowinski15-Oct-02 3:14 
GeneralRe: Use CRecordSet with Access Pin
MyEden15-Oct-02 3:14
MyEden15-Oct-02 3:14 
GeneralRe: Use CRecordSet with Access Pin
Tomasz Sowinski15-Oct-02 3:20
Tomasz Sowinski15-Oct-02 3:20 
GeneralNeed Help: MFC Date and Time Pin
leonwoo15-Oct-02 1:45
leonwoo15-Oct-02 1:45 
GeneralRe: Need Help: MFC Date and Time Pin
Tomasz Sowinski15-Oct-02 1:54
Tomasz Sowinski15-Oct-02 1:54 

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.