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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,529481ac2d77d9f6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!w1g2000hsg.googlegroups.com!not-for-mail From: vienapl@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Translating a VB dll header to Ada Date: 13 Apr 2007 18:05:18 -0700 Organization: http://groups.google.com Message-ID: <1176512718.219589.63270@w1g2000hsg.googlegroups.com> References: <1176320910.543255.74730@b75g2000hsg.googlegroups.com> <1176387466.525266.257670@n59g2000hsh.googlegroups.com> <1iye22k0o4obx$.naanhqgipkpf.dlg@40tude.net> <1176477928.918685.283010@b75g2000hsg.googlegroups.com> NNTP-Posting-Host: 217.126.90.204 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1176512718 21304 127.0.0.1 (14 Apr 2007 01:05:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 14 Apr 2007 01:05:18 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.10 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: w1g2000hsg.googlegroups.com; posting-host=217.126.90.204; posting-account=s-5BYg0AAACg_1u2WqCKSiLkbvMBVIC_ Xref: g2news1.google.com comp.lang.ada:15004 Date: 2007-04-13T18:05:18-07:00 List-Id: The program crashes even if I comment that out, when debugging what I get is: Program received signal SIGSEGV, Segmentation fault. 0x10002f19 in WindowerHelper!?SetText@CTextHelper@@QAEXPAD0@Z () even if the program got past that function without crashing. I don't understand why. Please, forgive my lack of experience. On Apr 13, 6:55 pm, "Dmitry A. Kazakov" wrote: > On 13 Apr 2007 08:25:29 -0700, vien...@hotmail.com wrote: > > > I posted this once already, but after several hours it seems to not > > show up, so I'm posting it again. > > > Thank you for the parameter corrections, I edited them, but the > > problem persists. > > > I'm quite sure I'm not using the API in a wrong manner, here is a C++ > > example of how it should be used:http://pastebin.ca/437367and here a > > VB6 one:http://pastebin.ca/437369. > > Well, C++ uses the class instead of plain functions. > > It is possible to make bindings to C++ classes. GNAT has pragmas for that. > > > This thing is getting me really confused. Would some debug information > > help? > > Yes. You can try to determine where exactly it crashes by inspecting the > stack. You can also check the stack frames to ensure that the call > convention is respected. > > But first, is it CTHSetLocation which makes troubles or other procedures as > well? If you commented that call out, would the rest crash? > > -- > Regards, > Dmitry A. Kazakovhttp://www.dmitry-kazakov.de