🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Stackwalk, map2dbg, BCB6 - solved???

#901
From: quincy451
Date: Sun, 06 Jan 2008 08:20
18 lines
1808 bytes
Ok I posted a post on this mid last year and no one replied.

Well, here is my solution:
1) if you are looking for the call stack from an exception you do NOT
need to gather the CONTEXT of the current thread it is given to you in
the EXCEPTION_RECORD.

2) the BCB6 solution is something of a kludge but simple and works.
First build a callstack.dll in bcb5.

Now in bcb6 do a LoadLibrary("callstack.dll");
and a GetProcAddr(handle, "dcallstack"); to get the function from the
bcb5 dll.

Now use the function pointer returned form GetProcAddr().

This works.
David
Technical Details
Message-ID: <123280ea-bbb1-4fa1-8ee4-75be707510ba@s19g2000prg.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!s19g2000prg.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1fcad7a7593e878,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!s19g2000prg.googlegroups.com!not-for-mail
From: quincy451@yahoo.com
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Stackwalk, map2dbg, BCB6 - solved???
Date: Sun, 6 Jan 2008 00:20:14 -0800 (PST)
Organization: http://groups.google.com
Lines: 18
Message-ID: <123280ea-bbb1-4fa1-8ee4-75be707510ba@s19g2000prg.googlegroups.com>
NNTP-Posting-Host: 76.185.246.13
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1199607614 5210 127.0.0.1 (6 Jan 2008 08:20:14 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 6 Jan 2008 08:20:14 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: s19g2000prg.googlegroups.com; posting-host=76.185.246.13; 
 posting-account=A-VfDAoAAACEw_rZ0D_mLqsVMWj6jgXV
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
 1.1.4322; .NET CLR 2.0.50727; Windows-Media-Player/10.00.00.3990; .NET CLR
 3.0.04506.30; InfoPath.1),gzip(gfe),gzip(gfe)