Stanislav
unread,Sep 8, 2010, 5:19:56 AM9/8/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to LeakChecker
#define LEAKCHECKER_VERSION 0x00010002
#define LEAKCHECKER_RELEASE_DATE 20100801
I hope did it by manual, but application need
#include <Windows.h>
after
#include "stdafx.h"
else I got error :
1>------ Build started: Project: MemoLeak, Configuration: Debug Win32
------
1>Compiling...
1>MemoLeak.cpp
1>d:\projects\cot\leakchecker\leakchecker.h(38) : error C2146: syntax
error : missing ';' before identifier 'WINAPI'
1>d:\projects\cot\leakchecker\leakchecker.h(38) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(38) : error C2146: syntax
error : missing ';' before identifier 'LeakCheckerDump'
1>d:\projects\cot\leakchecker\leakchecker.h(38) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(38) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(43) : error C2146: syntax
error : missing ';' before identifier 'WINAPI'
1>d:\projects\cot\leakchecker\leakchecker.h(43) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(43) : error C2146: syntax
error : missing ';' before identifier 'LeakCheckerStart'
1>d:\projects\cot\leakchecker\leakchecker.h(43) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(43) : error C2086: 'int
WINAPI' : redefinition
1> d:\projects\cot\leakchecker\leakchecker.h(38) : see
declaration of 'WINAPI'
1>d:\projects\cot\leakchecker\leakchecker.h(43) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(48) : error C2146: syntax
error : missing ';' before identifier 'WINAPI'
1>d:\projects\cot\leakchecker\leakchecker.h(48) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(48) : error C2146: syntax
error : missing ';' before identifier 'LeakCheckerStop'
1>d:\projects\cot\leakchecker\leakchecker.h(48) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(48) : error C2086: 'int
WINAPI' : redefinition
1> d:\projects\cot\leakchecker\leakchecker.h(38) : see
declaration of 'WINAPI'
1>d:\projects\cot\leakchecker\leakchecker.h(48) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(52) : error C2146: syntax
error : missing ';' before identifier 'dwCallStackFramesToCapture'
1>d:\projects\cot\leakchecker\leakchecker.h(52) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(52) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(53) : error C2146: syntax
error : missing ';' before identifier 'bBreakOnLeak'
1>d:\projects\cot\leakchecker\leakchecker.h(53) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(53) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(54) : error C2146: syntax
error : missing ';' before identifier 'bSingleThreadMode'
1>d:\projects\cot\leakchecker\leakchecker.h(54) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(54) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(55) : error C2146: syntax
error : missing ';' before identifier 'dwMinimalLeakCount'
1>d:\projects\cot\leakchecker\leakchecker.h(55) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(55) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(56) : error C2146: syntax
error : missing ';' before identifier 'lpSymbolPath'
1>d:\projects\cot\leakchecker\leakchecker.h(56) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(56) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(57) : error C2146: syntax
error : missing ';' before identifier 'lpVCInstallDir'
1>d:\projects\cot\leakchecker\leakchecker.h(57) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(57) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(63) : error C2146: syntax
error : missing ';' before identifier 'WINAPI'
1>d:\projects\cot\leakchecker\leakchecker.h(63) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(63) : error C2146: syntax
error : missing ';' before identifier 'LeakCheckerSetOptions'
1>d:\projects\cot\leakchecker\leakchecker.h(63) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\cot\leakchecker\leakchecker.h(63) : error C2086: 'int
WINAPI' : redefinition
1> d:\projects\cot\leakchecker\leakchecker.h(38) : see
declaration of 'WINAPI'
1>d:\projects\cot\leakchecker\leakchecker.h(63) : error C4430: missing
type specifier - int assumed. Note: C++ does not support default-int
1>d:\projects\tests\memoleak\memoleak.cpp(16) : error C3861: 'malloc':
identifier not found
1>Build log was saved at "file://d:\Projects\TESTS\MemoLeak\Debug
\BuildLog.htm"
1>MemoLeak - 42 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========