login about faq

Does you C++ implementation have a tool to ask the current memory usage by you components?

I have a situation where I fetch about 1 MB of data from a database and feed it into the CkEmail component.

This results in an increase from 7MB to 300MB memory for the process in Windows.

So I would like to determine how much of this 300MB is from the Chilkat component and how much comes from my own code and/or other libraries.

asked Dec 15 '16 at 10:00

chilkat's gravatar image

chilkat ♦♦
12.8k318387550


You can use Microsoft Platform SDK functions to get the heap size at a specific point. If get the heap size at point A in your code, and then again at point B, you can see how much it has grown. This might help you isolate here memory growth occurs.

Some Microsoft Platform SDK functions relating to this are:

HeapLock
HeapWalk
GetProcessHeaps
GetHeapSize
HeapUnlock
link

answered Dec 15 '16 at 10:00

chilkat's gravatar image

chilkat ♦♦
12.8k318387550

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×12
×1

Asked: Dec 15 '16 at 10:00

Seen: 786 times

Last updated: Dec 15 '16 at 10:00

powered by OSQA