Click here to Skip to main content
15,908,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Get flicker free image Pin
John R. Shaw28-Dec-05 17:05
John R. Shaw28-Dec-05 17:05 
Questionmaintain logfile of the accessed files Pin
RabiaAslam28-Dec-05 3:09
RabiaAslam28-Dec-05 3:09 
AnswerRe: maintain logfile of the accessed files Pin
vipinasda28-Dec-05 3:41
vipinasda28-Dec-05 3:41 
AnswerRe: maintain logfile of the accessed files Pin
David Crow28-Dec-05 5:36
David Crow28-Dec-05 5:36 
AnswerRe: maintain logfile of the accessed files Pin
basementman28-Dec-05 5:38
basementman28-Dec-05 5:38 
Questiondetecting memory leaks? Pin
9ine28-Dec-05 1:39
9ine28-Dec-05 1:39 
AnswerRe: detecting memory leaks? Pin
Axter28-Dec-05 2:27
professionalAxter28-Dec-05 2:27 
GeneralRe: detecting memory leaks? Pin
9ine28-Dec-05 4:50
9ine28-Dec-05 4:50 
this does not work, first I just added leaktracker.h to the project, lib and dll to windows system dir and run the project from VS 2003. Then closed the project and get standart memory leak in VS output window but there was no file C:\zz_David_Maisonave_DefaultLeakTrackerLogFile.log after termination. Then I added #include to the .cpp file that created additional mem leak on purpose for testing and the project doesnt want to be compiled:

Compiling...
sGenDlg.cpp
**************************************************************************************
Note: Including leaktracker implementation... DO NOT USE THIS BUILD FOR PRODUCTION!!!
**************************************************************************************
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(184) : error C2433: 'new' : 'inline' not permitted on data declarations
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(184) : error C2365: 'new' : redefinition; previous definition was a 'member function'
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(184) : error C2078: too many initializers
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(184) : error C2440: 'initializing' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(184) : error C2143: syntax error : missing ';' before '('
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(184) : error C2226: syntax error : unexpected type 'size_t'
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(184) : error C2059: syntax error : ')'
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(184) : error C2143: syntax error : missing ';' before '{'
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(184) : error C2447: '{' : missing function header (old-style formal list?)
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : error C2433: 'new' : 'inline' not permitted on data declarations
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : error C2365: 'new' : redefinition; previous definition was a 'member function'
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : error C2078: too many initializers
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : error C2440: 'initializing' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : error C2143: syntax error : missing ';' before '['
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : error C3409: empty attribute block is not allowed
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : warning C4518: 'char ' : storage-class or type specifier(s) unexpected here; ignored
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : warning C4518: 'int ' : storage-class or type specifier(s) unexpected here; ignored
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : warning C4518: 'char ' : storage-class or type specifier(s) unexpected here; ignored
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : error C2143: syntax error : missing ';' before '{'
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(188) : error C2447: '{' : missing function header (old-style formal list?)
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\leaktracker.h(264) : warning C4005: 'new' : macro redefinition
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(10) : see previous definition of 'new'
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(143) : error C2665: 'operator new[]' : none of the 5 overloads can convert parameter 2 from type 'const char [91]'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\crtdbg.h(669): could be 'void *operator new[](size_t,int,const char *,int)'
while trying to match the argument list '(size_t, const char [91], long, const char [29])'
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(176) : warning C4244: '*=' : conversion from 'double' to 'int', possible loss of data
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(188) : warning C4244: '*=' : conversion from 'double' to 'int', possible loss of data
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(225) : error C2665: 'operator new' : none of the 5 overloads can convert parameter 2 from type 'const char [91]'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\crtdbg.h(662): could be 'void *operator new(size_t,int,const char *,int)'
while trying to match the argument list '(size_t, const char [91], long, const char [29])'
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(231) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(234) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(237) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(259) : warning C4018: '<' : signed/unsigned mismatch
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(261) : warning C4018: '<' : signed/unsigned mismatch
c:\Documents and Settings\yc274\My Documents\Visual Studio Projects\COMPL\sGen\sGenDlg.cpp(290) : error C2665: 'operator new[]' : none of the 5 overloads can convert parameter 2 from type 'const char [91]'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\crtdbg.h(669): could be 'void *operator new[](size_t,int,const char *,int)'
while trying to match the argument list '(size_t, const char [91], long, const char [29])'

9ine
GeneralRe: detecting memory leaks? Pin
Axter28-Dec-05 4:59
professionalAxter28-Dec-05 4:59 
GeneralRe: detecting memory leaks? Pin
9ine28-Dec-05 23:47
9ine28-Dec-05 23:47 
GeneralRe: detecting memory leaks? Pin
Axter29-Dec-05 1:05
professionalAxter29-Dec-05 1:05 
GeneralRe: detecting memory leaks? Pin
9ine29-Dec-05 5:31
9ine29-Dec-05 5:31 
AnswerRe: detecting memory leaks? Pin
vipinasda28-Dec-05 3:38
vipinasda28-Dec-05 3:38 
GeneralRe: detecting memory leaks? Pin
Axter28-Dec-05 5:02
professionalAxter28-Dec-05 5:02 
GeneralRe: detecting memory leaks? Pin
vipinasda28-Dec-05 6:15
vipinasda28-Dec-05 6:15 
AnswerRe: detecting memory leaks? Pin
Prakash Nadar28-Dec-05 5:30
Prakash Nadar28-Dec-05 5:30 
AnswerRe: detecting memory leaks? Pin
MF28-Dec-05 15:19
MF28-Dec-05 15:19 
QuestionConverting int to char Pin
RedDragon2k28-Dec-05 1:17
RedDragon2k28-Dec-05 1:17 
AnswerRe: Converting int to char Pin
sunit528-Dec-05 1:29
sunit528-Dec-05 1:29 
GeneralRe: Converting int to char Pin
RedDragon2k28-Dec-05 1:47
RedDragon2k28-Dec-05 1:47 
GeneralRe: Converting int to char Pin
sunit528-Dec-05 1:58
sunit528-Dec-05 1:58 
GeneralRe: Converting int to char Pin
vikas amin28-Dec-05 1:58
vikas amin28-Dec-05 1:58 
GeneralRe: Converting int to char Pin
RedDragon2k28-Dec-05 2:05
RedDragon2k28-Dec-05 2:05 
AnswerRe: Converting int to char Pin
David Crow28-Dec-05 5:40
David Crow28-Dec-05 5:40 
AnswerRe: Converting int to char Pin
Gary R. Wheeler28-Dec-05 5:54
Gary R. Wheeler28-Dec-05 5:54 

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.