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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: hreba Newsgroups: comp.lang.ada Subject: Re: Interfaces.C + generics: stack overflow Date: Sat, 25 Mar 2017 15:17:15 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Z5SRsw0nlMAu1s65CNSXEQnDjp61e5R/KrxzuHYDSw9aLjOrmA Cancel-Lock: sha1:KirZn4NkdVjucbTou/yskgF1qcQ= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:46453 Date: 2017-03-25T15:17:15+01:00 List-Id: On 03/24/2017 11:03 PM, Dmitry A. Kazakov wrote: Thanks for your convincing suggestions and the detailed code. I changed my program accordingly - still STORAGE_ERROR. Then I followed the advice from Randy, transferring the exported function of the C library to another, non-generic package, changing the first parameter from function gsl_integration_qng (f: in out GSL_Function; ... to function gsl_integration_qng (f: System.Address; ... Result - STORAGE_ERROR To be continued ... -- Frank Hrebabetzky +49 / 6355 / 989 5070