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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd67f4dd079a80ab X-Google-Attributes: gid103376,public From: "Adrian BY, Hoe" Subject: Re: Help!!! (Variable arguments list) Date: 1998/06/07 Message-ID: <357A016E.59158A9B@technologist.com>#1/1 X-Deja-AN: 360284891 References: <357952BB.AE7CA46@technologist.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------861AA8F2672430F1EEA0A79B" Organization: Lexical Integration (M) Sdn Bhd Newsgroups: comp.lang.ada Date: 1998-06-07T00:00:00+00:00 List-Id: This is a multi-part message in MIME format. --------------861AA8F2672430F1EEA0A79B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Adrian BY, Hoe wrote: > > I have an Ada package written to interface to a database API which is, I > believe in C/C++. In the main, I have managed attaching the newdb > (db_handle) to an existing database with success! Then, I tried to pass > the newdb (db_handle) as a variable arguments list in function > d_start_transaction. An error was raised by the API stating that invalid > database handle (no active transaction). Under this circumstance, only a > null or invalid db_handle will raise this error. I have try to count the > number of arguments passed using Stdarg.Impl.ArgCount (args). It returns > 3 (in this case was newdb'Unchecked_Access & tpb_length & tpb_address). > Since, there is no reply yet, I would like to add/correct some information. Of, prior to calling the d_start_transaction function, I have called the d_attach_database to obtain the newdb (db_handle) with success. The db_handle has been passed to other functions as well which return expected results. I/we can rule out that the db_handle, newdb, was not assigned properly. In procedure main, correct with ibase; use ibase; to with database; use database; My question is, Is the pointer to db_handle of type PVOID (void *, in C/C++) passed correctly with my implementation: function "&" is new Stdarg.Concat (Pdb_handle); and Stdarg.Empty & newdb'Unchecked_Access & tpb_length & tpb_address in d_start_transaction? Please help! -- BY Hoe byhoe.lexical@technologist.com VP R&D (ES/IS Group) lexical@tm.net.my Lexical Integration (M) Sdn Bhd http://www.angelfire.com/biz/Lexical --------------861AA8F2672430F1EEA0A79B Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Adrian BY, Hoe Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Adrian BY, Hoe n: Hoe;Adrian BY, org: Lexical Integration (M) Sdn Bhd email;internet: byhoe.lexical@technologist.com title: VP, R&D (ES/IS Group) x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------861AA8F2672430F1EEA0A79B Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Adrian BY, Hoe Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Adrian BY, Hoe n: Hoe;Adrian BY, org: Lexical Integration (M) Sdn Bhd email;internet: byhoe.lexical@technologist.com title: VP, R&D (ES/IS Group) x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------861AA8F2672430F1EEA0A79B--