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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a02:6c2:: with SMTP id 185-v6mr23910642jav.62.1537306131110; Tue, 18 Sep 2018 14:28:51 -0700 (PDT) X-Received: by 2002:aca:d551:: with SMTP id m78-v6mr74447oig.1.1537306130962; Tue, 18 Sep 2018 14:28:50 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!x188-v6no128822ite.0!news-out.google.com!c63-v6ni121ith.0!nntp.google.com!x81-v6no129246ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 18 Sep 2018 14:28:50 -0700 (PDT) In-Reply-To: <03101a27-2c87-4f39-bfbd-21007345cee9@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=121.45.194.120; posting-account=3BDb0woAAAAxEpy0UNGOioOboBRjpqqT NNTP-Posting-Host: 121.45.194.120 References: <01166054-3971-4df6-8af4-f9fc4d8a30c4@googlegroups.com> <082b9b50-7689-4990-8b7e-9106a6564371@googlegroups.com> <03101a27-2c87-4f39-bfbd-21007345cee9@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <848ac367-14db-42e2-ad1a-913f90f541cc@googlegroups.com> Subject: Re: Interface To C Struct That Includes An Array From: rogermc@iinet.net.au Injection-Date: Tue, 18 Sep 2018 21:28:51 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:54363 Date: 2018-09-18T14:28:50-07:00 List-Id: On Wednesday, 19 September 2018 04:55:35 UTC+10, rakusu...@fastmail.jp wro= te: > =D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 18 =D1=81=D0=B5=D0=BD=D1=82= =D1=8F=D0=B1=D1=80=D1=8F 2018 =D0=B3., 14:54:37 UTC+3 =D0=BF=D0=BE=D0=BB=D1= =8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C rog...@iinet.net.au =D0= =BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > > I agree but I don't know how to avoid it. > > Would pragma Convention (C, API_String) be OK? > > Also, I'm not sure that API_String is ever actually copied as all the i= nterfacing is by pointers? > As ARM12 says, a records always passed to a C functions by reference in a= ll modes other than an =E2=80=9Cin=E2=80=9D. So if it does not a desirable = behaviour, there are no reasons for this pragma and =E2=80=9Cpragma Convent= ion (C, API_String)=E2=80=9D would be clear and enough. >=20 > Btw, it is not helpful for your problem, sorry. There are nothing suspici= ous for me neither in your code, nor the Assimp code: https://code.woboq.or= g/qt5/qt3d/src/3rdparty/assimp/code/MaterialSystem.cpp.html#aiGetMaterialSt= ring Looks like the \x0B\x00\x00\x00phoenix.pcx\x00 sequence is the filenam= e actually stored in aiMaterial. So, as you decided before, it would be bet= ter to look for input data. Thanks for your advice. It definitely looks like my input data structure is incorrect so I'm workin= g on fixing that up now.