Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: .h and .cpp files Pin
ovidiucucu25-Jun-06 2:36
ovidiucucu25-Jun-06 2:36 
QuestionCRecordset problem Pin
moodsey21123-Jun-06 16:17
moodsey21123-Jun-06 16:17 
AnswerRe: CRecordset problem Pin
ovidiucucu24-Jun-06 7:16
ovidiucucu24-Jun-06 7:16 
GeneralRe: CRecordset problem Pin
moodsey21124-Jun-06 14:11
moodsey21124-Jun-06 14:11 
GeneralRe: CRecordset problem Pin
ovidiucucu29-Jun-06 2:51
ovidiucucu29-Jun-06 2:51 
Questionsource of viewport [modified] Pin
hoa_nguyen23-Jun-06 15:15
hoa_nguyen23-Jun-06 15:15 
AnswerRe: source of viewport Pin
Hamid_RT23-Jun-06 21:12
Hamid_RT23-Jun-06 21:12 
QuestionHow to measure memory consumption? Pin
nysubmarine23-Jun-06 10:47
nysubmarine23-Jun-06 10:47 
Hi, I have a very complex C++ object (with many class members and some of them are shared between different objects).
What is the best way to measure how much memory this object takes?

I tried the following:
before and after creating this object I call
GetProcessMemoryInfo(hProcess, &pmc, sizeof(pmc))
and then use difference in pmc.WorkingSetSize between two calls.

However it doesn't work well since WorkingSetSize increased in balks. So sometimes I get a big memory increase and other times it is zero.

Is there any system function that allow to measure exactly how much memory was allocated between two calls?

Thanks in advance for help!

PS. I develop on Windows using Visual Studio

AnswerRe: How to measure memory consumption? Pin
Jun Du23-Jun-06 11:12
Jun Du23-Jun-06 11:12 
QuestionLink errors using std::vector Pin
BuckBrown23-Jun-06 10:22
BuckBrown23-Jun-06 10:22 
AnswerRe: Link errors using std::vector Pin
Neville Franks23-Jun-06 13:27
Neville Franks23-Jun-06 13:27 
QuestionAPI needed Pin
act_x23-Jun-06 9:57
act_x23-Jun-06 9:57 
AnswerRe: API needed Pin
cje23-Jun-06 9:59
cje23-Jun-06 9:59 
AnswerRe: API needed Pin
David Crow23-Jun-06 10:00
David Crow23-Jun-06 10:00 
AnswerRe: API needed Pin
act_x23-Jun-06 10:05
act_x23-Jun-06 10:05 
AnswerRe: API needed Pin
Hamid_RT23-Jun-06 21:08
Hamid_RT23-Jun-06 21:08 
QuestionBinary File IO Pin
Jumpin' Jeff23-Jun-06 9:06
Jumpin' Jeff23-Jun-06 9:06 
AnswerRe: Binary File IO Pin
David Crow23-Jun-06 9:10
David Crow23-Jun-06 9:10 
GeneralRe: Binary File IO Pin
Jumpin' Jeff23-Jun-06 9:41
Jumpin' Jeff23-Jun-06 9:41 
GeneralRe: Binary File IO Pin
David Crow23-Jun-06 9:53
David Crow23-Jun-06 9:53 
GeneralRe: Binary File IO [modified] Pin
Zac Howland23-Jun-06 10:02
Zac Howland23-Jun-06 10:02 
AnswerRe: Binary File IO [modified] Pin
Joe Woodbury23-Jun-06 9:25
professionalJoe Woodbury23-Jun-06 9:25 
GeneralRe: Binary File IO Pin
Jumpin' Jeff23-Jun-06 9:50
Jumpin' Jeff23-Jun-06 9:50 
GeneralRe: Binary File IO Pin
David Crow23-Jun-06 9:55
David Crow23-Jun-06 9:55 
GeneralRe: Binary File IO Pin
Jumpin' Jeff23-Jun-06 9:59
Jumpin' Jeff23-Jun-06 9:59 

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.