<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Where is a memory leak?????</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Where is a memory leak?????]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 08:49:55 +0000</pubDate>
  <lastBuildDate>Sun, 28 Jun 2009 21:52:00 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=14642</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Where is a memory leak????? : My OS is a Windows 7.   int...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14642&amp;PID=50428&amp;title=where-is-a-memory-leak#50428</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=904">babeshade</a><br /><strong>Subject:</strong> 14642<br /><strong>Posted:</strong> 28 June 2009 at 9:52pm<br /><br /><FONT color=#0000ff>My OS is a Windows 7. </FONT><DIV>&nbsp;</DIV><DIV>int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>{<BR>&nbsp;if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;return -1;</DIV><DIV><BR>&nbsp;if (!m_wndStatusBar.Create(this) ||<BR>&nbsp;&nbsp;!m_wndStatusBar.SetIndicators(indicators,<BR>&nbsp;&nbsp;&nbsp; sizeof(indicators)/sizeof(UINT)))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create status bar\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;}</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#006600>&nbsp;int* p = new int;</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>&nbsp;// Initialize the command bars<BR>&nbsp;if (!InitCommandBars())<BR>&nbsp;&nbsp;return -1;</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;...</DIV><DIV>&nbsp;...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;return 0;<BR>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Problem is red line.</DIV><DIV>If run that code, I can't see memory leak(pointer p) in output debug window.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>As following is output text.</DIV><DIV>----------------------------------------------------------------------------------------------------------------------------------------------------------------------</DIV><DIV><FONT color=#666666>'LeakTest2008.exe': Loaded 'C:\Users\Administrator\Documents\Visual Studio 2005\Projects\LeakTest2008\Debug\LeakTest2008.exe', Symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\ntdll.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\kernel32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\KernelBase.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.debugmfc_1fc8b3b9a1e18e3b_8.0.50727.762_none_29a8a38855141f6e\mfc80ud.dll', Symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.762_none_24c8a196583ff03b\msvcr80d.dll', Symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\msvcrt.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\gdi32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\user32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\lpk.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\usp10.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\shlwapi.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7100.19_none_b6a32c7c247ee542\comctl32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\oleaut32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\ole32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\ToolkitPro1310vc80UD.dll', Symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\advapi32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\sechost.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\shell32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\winmm.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\imagehlp.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\imm32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\msctf.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_8.0.50727.762_none_43efccf17831d131\mfc80KOR.dll', Binary was not built with debug information.<BR>Codejock ToolkitPro Initializing!<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\cryptbase.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\uxtheme.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\msimg32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\apphelp.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\IMKR12.IME', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4918_none_d089094c442eb5ff\msvcr80.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4918_none_d089094c442eb5ff\msvcp80.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\dwmapi.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Program Files\NATEON\BIN\NateOnHook40u.dll', Binary was not built with debug information.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\clbcatq.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Program Files\Common Files\microsoft shared\IME12\IMEKR\IMKRTIP.DLL', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Program Files\Common Files\microsoft shared\IME12\SHARED\IMETIP.DLL', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Program Files\Common Files\microsoft shared\IME12\IMEKR\IMKRAPI.DLL', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\version.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Program Files\Common Files\microsoft shared\IME12\SHARED\IMJKAPI.DLL', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\MMDevAPI.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\propsys.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\wdmaud.drv', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\ksuser.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\avrt.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\setupapi.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\devobj.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\AudioSes.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\msacm32.drv', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\msacm32.dll', No symbols loaded.<BR>'LeakTest2008.exe': Loaded 'C:\Windows\System32\midimap.dll', No symbols loaded.<BR>'LeakTest2008.exe': Unloaded 'C:\Program Files\Common Files\microsoft shared\IME12\SHARED\IMETIP.DLL'<BR>'LeakTest2008.exe': Unloaded 'C:\Program Files\Common Files\microsoft shared\IME12\IMEKR\IMKRTIP.DLL'<BR>The thread 'Win32 Thread' (0xadc) has exited with code -1073741749 (0xc000004b).<BR>The program '&#091;3440&#093; LeakTest2008.exe: Native' has exited with code 0 (0x0).</FONT><BR>----------------------------------------------------------------------------------------------------------------------------------------------------------------------</DIV><DIV>Where is memeory leak??</DIV>]]>
   </description>
   <pubDate>Sun, 28 Jun 2009 21:52:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14642&amp;PID=50428&amp;title=where-is-a-memory-leak#50428</guid>
  </item> 
 </channel>
</rss>