🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11646

Heap

#11646
From: Arthur Jelsma
Date: Tue, 27 Jan 2004 16:02
16 lines
1508 bytes
On a Windows 2000 machine with BCB5 Pro, I am trying to walk
the heap of my application. I use the following API call to
snapshot the heap:

hdlSnp = CreateToolhelp32Snapshot( TH32CS_SNAPHEAPLIST, 0 )

I then use Heap32ListFirst, Heap32First, Heap32Next, and 
Heap32ListNext to walk the heap. However, I am seeing address
data from HEAPENTRY32 which is not consistant with the memory
display of PrcView (v3.7.3.1) for my application. I use 0 in
CreateToolhelp32Snapshot to force it to use the current process.
Any ideas as to what I may be doing wrong? Note the memory
display from PrcView is consistent with addresses I am seeing
in my application. Thanks for any help and insight that you
can give me.
Technical Details
Message-ID: <401699bd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,227c4d2e6944c6c0,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-27 09:11:23 PST
From: "Arthur Jelsma" <jelsma@wapa.gov>
Sender: "Arthur Jelsma" <jelsma@wapa.gov>
Reply-To: "Arthur Jelsma" <jelsma@wapa.gov>
Subject: Heap
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 207.109.125.201     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <401699bd$1@newsgroups.borland.com>
Date: 27 Jan 2004 09:02:53 -0700
X-Trace: newsgroups.borland.com 1075222973 207.105.83.66 (27 Jan 2004 09:02:53 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail