At 01:09 AM 11/6/2004 -0700, Victor A. Wagner Jr. writeth:
>
>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
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=groups/S=:HM/A=2376776/rand=170195926


Yahoo! Groups Links

Reply via email to