Click here to Skip to main content
15,890,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Mem Usage keeps increasing Pin
FISH78618-Jun-09 3:12
FISH78618-Jun-09 3:12 
AnswerRe: Mem Usage keeps increasing Pin
KarstenK18-Jun-09 4:01
mveKarstenK18-Jun-09 4:01 
GeneralRe: Mem Usage keeps increasing Pin
FISH78618-Jun-09 4:21
FISH78618-Jun-09 4:21 
GeneralRe: Mem Usage keeps increasing Pin
Sarath C18-Jun-09 4:23
Sarath C18-Jun-09 4:23 
GeneralRe: Mem Usage keeps increasing Pin
FISH78618-Jun-09 4:39
FISH78618-Jun-09 4:39 
GeneralRe: Mem Usage keeps increasing Pin
FISH78620-Jun-09 19:24
FISH78620-Jun-09 19:24 
GeneralRe: Mem Usage keeps increasing Pin
FISH78621-Jun-09 4:11
FISH78621-Jun-09 4:11 
GeneralRe: Mem Usage keeps increasing Pin
Sarath C21-Jun-09 4:18
Sarath C21-Jun-09 4:18 
What's the type of m_bmpCtrl variable? There will be direct functions exposed in the class to clear the attached resources

also the way you released the resources is quite wrong. if you're explicity releasing the resource, it's your responsibility to assign it as NULL. Otherwise the next call this function may crash, as you've released the previously and the m_bmpCtrl.hBitmap still holds an junk(invalid) handle. also why it's necessary to create a temporary variable? the following way is straight forward no?

if (m_bmpCtrl.hBitmap)
			{
				DeleteObject(m_bmpCtrl.hBitmap);
				m_bmpCtrl.hBitmap = NULL;
			}


-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin

GeneralRe: Mem Usage keeps increasing Pin
FISH78621-Jun-09 12:27
FISH78621-Jun-09 12:27 
QuestionLogic for finding folders including subfolder within a selected path Pin
V K 218-Jun-09 2:45
V K 218-Jun-09 2:45 
AnswerRe: Logic for finding folders including subfolder within a selected path Pin
David Crow18-Jun-09 2:54
David Crow18-Jun-09 2:54 
GeneralClipbaord copy Pin
Member 607418-Jun-09 1:56
Member 607418-Jun-09 1:56 
GeneralRe: Clipbaord copy Pin
chirag_chauhan18-Jun-09 2:34
chirag_chauhan18-Jun-09 2:34 
QuestionExample for SetLocaleInfo Pin
Super Hornet18-Jun-09 1:50
Super Hornet18-Jun-09 1:50 
QuestionCreate shared Registry Key Pin
Monu_TCS18-Jun-09 1:43
Monu_TCS18-Jun-09 1:43 
AnswerRe: Create shared Registry Key Pin
KarstenK18-Jun-09 2:10
mveKarstenK18-Jun-09 2:10 
GeneralRe: Create shared Registry Key Pin
Monu_TCS18-Jun-09 2:49
Monu_TCS18-Jun-09 2:49 
QuestionRe: Create shared Registry Key Pin
David Crow18-Jun-09 2:55
David Crow18-Jun-09 2:55 
AnswerRe: Create shared Registry Key Pin
Stuart Dootson18-Jun-09 7:49
professionalStuart Dootson18-Jun-09 7:49 
GeneralRe: Create shared Registry Key Pin
Monu_TCS22-Jun-09 3:56
Monu_TCS22-Jun-09 3:56 
GeneralRe: Create shared Registry Key Pin
Stuart Dootson22-Jun-09 4:00
professionalStuart Dootson22-Jun-09 4:00 
GeneralRe: Create shared Registry Key Pin
Monu_TCS23-Jun-09 0:05
Monu_TCS23-Jun-09 0:05 
QuestionWhy I can hear only one (calling) side using TAPI and H.323? Pin
GAJERA18-Jun-09 0:59
GAJERA18-Jun-09 0:59 
QuestionCString Pin
p_196017-Jun-09 23:45
p_196017-Jun-09 23:45 
AnswerRe: CString Pin
Nishad S17-Jun-09 23:51
Nishad S17-Jun-09 23:51 

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.