>
>At Saturday 2004-11-06 00:30, you wrote:
>
>>This works fine given the fact that your yourself are allocating the
>>memory...
>> If there is a third party library function..which accepts a pointer as
>> an argument and internally
>>allocates memory to it!..
>>
>>How do I know how much memory has been allocated?
>
>you don't
Well...that's not _entirely_ true. It depends on the OS, but assuming
Windows, you _could_ do API hooking of the memory allocation functions.
You would only be able to get a rough estimate, though, because those
functions are typically called by underlying library code that may allocate
a page at a time. My guess is you are suspecting a memory leak inside the
library you are using and want to verify where it is occurring. Have you
tried BoundsChecker? It does the type of hooking I mentioned (but does a
miserable job of pinpointing the cause in a lot of cases - but it is better
than nothing).
Thomas J. Hruska
[EMAIL PROTECTED]
Shining Light Productions
Home of the Nuclear Vision scripting language and ProtoNova web server.
http://www.slproweb.com/
To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
