Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CRITICAL! Can't check memory leak at Win7
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CRITICAL! Can't check memory leak at Win7

 Post Reply Post Reply
Author
Message
babeshade View Drop Down
Newbie
Newbie
Avatar

Joined: 22 December 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote babeshade Quote  Post ReplyReply Direct Link To This Post Topic: CRITICAL! Can't check memory leak at Win7
    Posted: 08 February 2010 at 8:08pm
Hi~
 
I have a very serious problem.
My enviorment is as folowing.
 
  DEV: Microsoft Visual Studio 2005
  TOOLKIT: Xtreme ToolkitPro v13.2.1
  OS: Windows7
  Locale: Korea
 
I created a project with XtremeToolkit MDI.
And all option is default.
then added a code to CMainFrame creator.
 
Here is a my code.
 
CMainFrame::CMainFrame()

    int* leak = new int;
}
 
I never delete the 'leak' pointer.
That's all added code.
 
Compile and run the program.
If close a program, we must a see message for memory leak notification in output window.
 
BUT!!!!!!!!!!!
I can't find a any leak message in output window.
Look at this. It's my output.
 
'LeakTest1.exe': Loaded 'E:\02. MY PROJECT\LeakTest1\Debug\LeakTest1.exe', Symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\ntdll.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\kernel32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\KernelBase.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.debugmfc_1fc8b3b9a1e18e3b_8.0.50727.4053_none_e9832bc8fd3efed3\mfc80ud.dll', Symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_e4a329d7006acfa0\msvcr80d.dll', Symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\msvcrt.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\gdi32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\user32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\lpk.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\usp10.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\shlwapi.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\comctl32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\oleaut32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\ole32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\ToolkitPro1321vc80UD.dll', Symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\advapi32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\sechost.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\shell32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\winmm.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\imagehlp.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\imm32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\msctf.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_8.0.50727.4053_none_03ca5532205cb096\mfc80KOR.dll', Binary was not built with debug information.
Codejock ToolkitPro Initializing!
'LeakTest1.exe': Loaded 'C:\Windows\System32\cryptbase.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\uxtheme.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\msimg32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\apphelp.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\IMKR12.IME', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\msvcr80.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\msvcp80.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\dwmapi.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\cryptsp.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\rsaenh.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\RpcRtRemote.dll', No symbols loaded.
Warning: CMDIFrameWnd without a default menu.
'LeakTest1.exe': Loaded 'C:\Windows\System32\clbcatq.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Program Files\Common Files\microsoft shared\IME12\IMEKR\IMKRTIP.DLL', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Program Files\Common Files\microsoft shared\IME12\SHARED\IMETIP.DLL', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Program Files\Common Files\microsoft shared\IME12\IMEKR\IMKRAPI.DLL', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\version.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Program Files\Common Files\microsoft shared\IME12\SHARED\IMJKAPI.DLL', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\MMDevAPI.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\propsys.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\wdmaud.drv', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\ksuser.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\avrt.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\setupapi.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\devobj.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\AudioSes.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\msacm32.drv', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\msacm32.dll', No symbols loaded.
'LeakTest1.exe': Loaded 'C:\Windows\System32\midimap.dll', No symbols loaded.
'LeakTest1.exe': Unloaded 'C:\Program Files\Common Files\microsoft shared\IME12\SHARED\IMETIP.DLL'
'LeakTest1.exe': Unloaded 'C:\Program Files\Common Files\microsoft shared\IME12\IMEKR\IMKRTIP.DLL'
The thread 'Win32 Thread' (0xf98) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1684) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x16c8) has exited with code -1073741749 (0xc000004b).
The thread 'Win32 Thread' (0x808) has exited with code 0 (0x0).
The program '[3776] LeakTest1.exe: Native' has exited with code 0 (0x0).
 
If same project run the windows xp, No problem.
Why occur problem in only windows7?
Why? Why? Why??????
 
Very interesting thing is XtremeToolkit Dialog based project has no problem.
It's print a leak message very normally.
 
Plz someone help me.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2010 at 5:18am
Hi,
 
Thanks, we found that line

m_bSoundAvailable = waveOutGetNumDevs() > 0

in our sources was reason. Very strange actually. think we can just set m_bSoundAvailable = TRUE for future.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
babeshade View Drop Down
Newbie
Newbie
Avatar

Joined: 22 December 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote babeshade Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2010 at 1:12am
I am incredible!!! Thanks you! Thanks you sooooooooooooooooooooooooooo~ much!!
You save my life in the Hell!!!
 
Here is a present for you.
 
while(true)
{
    printf("Thanks you!\");
}
 
sorry.. it's not spam~ :)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.