From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d76eca02efabf0c0 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e39g2000hsf.googlegroups.com!not-for-mail From: george.priv@gmail.com Newsgroups: comp.lang.ada Subject: Re: Address attribute of an overloaded function Date: Fri, 18 Apr 2008 13:25:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <80065d26-869e-4c84-b922-077a0bff6e56@a1g2000hsb.googlegroups.com> NNTP-Posting-Host: 151.196.71.114 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1208550309 17544 127.0.0.1 (18 Apr 2008 20:25:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 18 Apr 2008 20:25:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e39g2000hsf.googlegroups.com; posting-host=151.196.71.114; posting-account=VnNb3AoAAACTpRtCcTrcjmPX7cs92k1Q User-Agent: G2/1.0 X-HTTP-Via: 1.1 SPARKS X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080129 Iceweasel/2.0.0.12 (Debian-2.0.0.12-1),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20991 Date: 2008-04-18T13:25:09-07:00 List-Id: On Apr 18, 9:54 am, Ian wrote: > Hi, I've got a window file with 4 different create window procedures. > I'm trying to put a logger in to allow backtracing by function address > and name, but I can't get it to take the address of these 4 > functions. I was wondering if any one knew of a way around this. I'm > inside of the functions when writing to the log so something > equivalent to C++'s 'this' pointer would work, and the functions > obviously have different signatures, but I don't know how to specify > more than the name with 'Address. Any ideas? I am not sure that is the best approach to do what you want to do. If you have an exception, you can get stack trace retrieved by Exception_Information call (you have to enable this function). Or put tracers in each of your create window procedures. G.