Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: repost Numbers won't display in HEX when using string class Pin
Perseus9-Jan-03 14:41
Perseus9-Jan-03 14:41 
GeneralResource for resources Pin
Aaron Schaefer9-Jan-03 12:09
Aaron Schaefer9-Jan-03 12:09 
GeneralRe: Resource for resources Pin
Taka Muraoka9-Jan-03 12:34
Taka Muraoka9-Jan-03 12:34 
GeneralRe: Resource for resources Pin
Aaron Schaefer9-Jan-03 12:35
Aaron Schaefer9-Jan-03 12:35 
GeneralSplash Screen, title and icon Pin
MemLeak9-Jan-03 10:59
MemLeak9-Jan-03 10:59 
GeneralRe: Splash Screen, title and icon Pin
super9-Jan-03 19:12
professionalsuper9-Jan-03 19:12 
QuestionMemory problems? or not? Pin
jimNLX9-Jan-03 10:30
jimNLX9-Jan-03 10:30 
AnswerRe: Memory problems? or not? Pin
Alvaro Mendez9-Jan-03 10:59
Alvaro Mendez9-Jan-03 10:59 
Hmmm, delete this should take care of everything, including calling DestroyWindow window, so there's no need to call it yourself.

Anyway, the reason for the memory leak is not apparent, but if you run the app in the debugger and then close it, you should see exactly where the memory that's leaking was allocated.

You may also consider taking a different, simpler approach. But it depends on whether you want to allow the user to create multiple CMALF2Dlg boxes everytime the button is pressed. If you DON'T, then great! I have the perfect solution, create it as a static variable:

static CMALF2Dlg s_dlg;
 
if (!::IsWindow(s_dlg.m_hWnd))
  s_dlg.Create(CMALF2Dlg::IDD, this);
s_dlg.ShowWindow(SW_SHOWNORMAL);


Then you can get rid of the delete this as well as the memory leak. Smile | :)

Regards,
Alvaro


Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
GeneralCall an executable Pin
sumod9-Jan-03 9:30
sumod9-Jan-03 9:30 
GeneralRe: Call an executable Pin
Alvaro Mendez9-Jan-03 9:40
Alvaro Mendez9-Jan-03 9:40 
Generali Still in Trouble! plz Help me to release Pin
Alex H 19839-Jan-03 8:59
Alex H 19839-Jan-03 8:59 
GeneralRe: i Still in Trouble! plz Help me to release Pin
l a u r e n9-Jan-03 9:06
l a u r e n9-Jan-03 9:06 
GeneralRe: i Still in Trouble! plz Help me to release Pin
Alex H 19839-Jan-03 9:28
Alex H 19839-Jan-03 9:28 
GeneralRe: i Still in Trouble! plz Help me to release Pin
l a u r e n9-Jan-03 9:36
l a u r e n9-Jan-03 9:36 
GeneralRe: i Still in Trouble! plz Help me to release Pin
l a u r e n9-Jan-03 9:41
l a u r e n9-Jan-03 9:41 
GeneralRe: i Still in Trouble! plz Help me to release Pin
Alex H 19839-Jan-03 9:52
Alex H 19839-Jan-03 9:52 
GeneralRe: i Still in Trouble! plz Help me to release Pin
l a u r e n9-Jan-03 9:56
l a u r e n9-Jan-03 9:56 
GeneralShame on me !!! it's not worked yet !! Pin
Alex H 19839-Jan-03 10:05
Alex H 19839-Jan-03 10:05 
GeneralRe: Shame on me !!! it's not worked yet !! Pin
l a u r e n9-Jan-03 10:20
l a u r e n9-Jan-03 10:20 
GeneralRe: Shame on me !!! it's not worked yet !! Pin
uandrej9-Jan-03 10:44
uandrej9-Jan-03 10:44 
GeneralRe: Shame on me !!! it's not worked yet !! Pin
Alex H 19839-Jan-03 19:36
Alex H 19839-Jan-03 19:36 
GeneralRe: Shame on me !!! it's not worked yet !! Pin
9-Jan-03 21:33
suss9-Jan-03 21:33 
GeneralRe: Shame on me !!! it's not worked yet !! Pin
KaЯl10-Jan-03 0:13
KaЯl10-Jan-03 0:13 
GeneralAp Pin
KaЯl10-Jan-03 0:22
KaЯl10-Jan-03 0:22 
GeneralRe: Ap Pin
Alex H 198310-Jan-03 1:32
Alex H 198310-Jan-03 1:32 

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.