Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: refactoring tool Pin
Christian Graus4-Sep-05 11:59
protectorChristian Graus4-Sep-05 11:59 
QuestionIExplorer 6 runtime error! Pin
EA6_Panther4-Sep-05 8:48
EA6_Panther4-Sep-05 8:48 
AnswerRe: IExplorer 6 runtime error! Pin
Jose Lamas Rios4-Sep-05 19:33
Jose Lamas Rios4-Sep-05 19:33 
GeneralRe: IExplorer 6 runtime error! Pin
EA6_Panther5-Sep-05 2:05
EA6_Panther5-Sep-05 2:05 
Questionwindows forms extremely newbie question Pin
newbie progammer4-Sep-05 8:15
sussnewbie progammer4-Sep-05 8:15 
AnswerRe: windows forms extremely newbie question Pin
User 66584-Sep-05 10:33
User 66584-Sep-05 10:33 
AnswerRe: windows forms extremely newbie question Pin
Christian Graus4-Sep-05 10:41
protectorChristian Graus4-Sep-05 10:41 
QuestionMemory leak! need help Pin
Evil_Twin4-Sep-05 4:04
Evil_Twin4-Sep-05 4:04 
Im relatively new to programming and have never come across a memory leak problem before and cant seem to figure out how to fix the problem. For some reason I have this memory leak
memory check error at 0x000349C0 = 0xFF, should be 0xFD.
memory check error at 0x000349C1 = 0x00, should be 0xFD.
memory check error at 0x000349C2 = 0x03, should be 0xFD.
memory check error at 0x000349C3 = 0x00, should be 0xFD.
Detected memory leaks!
Dumping objects ->
C:\Program Files\Microsoft Visual Studio\MyProjects\Mandelbrot\MandelbrotDoc.cpp(20) : {61} client block at 0x00034550, subtype 0, 1136 bytes long.
a CObject object at $00034550, 1136 bytes long
plex.cpp(31) : {60} normal block at 0x00034498, 124 bytes long.
Data: < C > 00 00 00 00 00 00 00 00 00 00 00 00 F0 43 03 00
{59} client block at 0x00032A58, subtype 0, 32 bytes long.
a CDocManager object at $00032A58, 32 bytes long
c:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\MYPROJECTS\Mandelbrot\Mandelbrot.cpp(78) : {58} client block at 0x000343F0, subtype 0, 108 bytes long.
a CSingleDocTemplate object at $000343F0, 108 bytes long
strcore.cpp(118) : {56} normal block at 0x00032A00, 19 bytes long.
Data: < File> 01 00 00 00 06 00 00 00 06 00 00 00 46 69 6C 65
strcore.cpp(118) : {55} normal block at 0x00032998, 29 bytes long.
Data: < Rece> 01 00 00 00 10 00 00 00 10 00 00 00 52 65 63 65
{54} normal block at 0x00032940, 20 bytes long.
Data: < M_ M_ M_> 04 00 00 00 14 0B 4D 5F 14 0B 4D 5F 14 0B 4D 5F
{53} normal block at 0x000328D8, 32 bytes long.
Data: < K_ D) ) > CC AD 4B 5F 04 00 00 00 44 29 03 00 A4 29 03 00
Object dump complete.
The thread 0xFC6C has exited with code 3 (0x3).
The program 'C:\Program Files\Microsoft Visual Studio\MyProjects\Mandelbrot\Debug\Mandelbrot.exe' has exited with code 3 (0x3).

It says my leak lies here
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CMandelbrotDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CMandelbrotView));
AddDocTemplate(pDocTemplate);

and here

IMPLEMENT_DYNCREATE(CMandelbrotDoc, CDocument)

BEGIN_MESSAGE_MAP(CMandelbrotDoc, CDocument)
//{{AFX_MSG_MAP(CMandelbrotDoc)
ON_COMMAND(ID_APPIDLE, OnAppIdle)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP

END_MESSAGE_MAP()

If you need more info to help me out just let me know. Thanks.
AnswerRe: Memory leak! need help Pin
Christian Graus4-Sep-05 10:42
protectorChristian Graus4-Sep-05 10:42 
AnswerRe: Memory leak! need help Pin
John M. Drescher4-Sep-05 12:58
John M. Drescher4-Sep-05 12:58 
QuestionPictures in Html Help Workshop Pin
a_kiani4-Sep-05 3:12
a_kiani4-Sep-05 3:12 
AnswerRe: Pictures in Html Help Workshop Pin
S Douglas4-Sep-05 20:52
professionalS Douglas4-Sep-05 20:52 
AnswerRe: Pictures in Html Help Workshop Pin
Marc Soleda4-Sep-05 21:06
Marc Soleda4-Sep-05 21:06 
QuestionKey codes to name Pin
Gadjuka4-Sep-05 2:52
Gadjuka4-Sep-05 2:52 
AnswerRe: Key codes to name Pin
Christian Graus4-Sep-05 10:43
protectorChristian Graus4-Sep-05 10:43 
AnswerRe: Key codes to name Pin
Anonymous4-Sep-05 14:18
Anonymous4-Sep-05 14:18 
GeneralRe: Key codes to name Pin
Gadjuka4-Sep-05 23:40
Gadjuka4-Sep-05 23:40 
Question.NET Application books Pin
hcmuns4-Sep-05 1:59
susshcmuns4-Sep-05 1:59 
QuestionHow to use CByteArray to store large data into Oracle database Pin
snprani4-Sep-05 1:21
snprani4-Sep-05 1:21 
Questionneeded help for template in template problem in vc++ Pin
Member 22477494-Sep-05 1:00
Member 22477494-Sep-05 1:00 
AnswerRe: needed help for template in template problem in vc++ Pin
Axter4-Sep-05 1:58
professionalAxter4-Sep-05 1:58 
QuestionTransferring Data from view to view Pin
Member 15334374-Sep-05 0:04
Member 15334374-Sep-05 0:04 
AnswerRe: Transferring Data from view to view Pin
LeFauve4-Sep-05 0:47
LeFauve4-Sep-05 0:47 
GeneralRe: Transferring Data from view to view Pin
Member 15334374-Sep-05 1:55
Member 15334374-Sep-05 1:55 
QuestionHow can I compile *.lib in VC++ to dll? Pin
uumeme3-Sep-05 22:15
uumeme3-Sep-05 22:15 

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.