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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,caf731dbeed8deee,start X-Google-Attributes: gid103376,public From: Viqar Abbasi Subject: Adainit, Adafinal... Date: 1999/06/09 Message-ID: <375E7A68.8531F763@cae.ca>#1/1 X-Deja-AN: 487509946 Content-Transfer-Encoding: 7bit To: Gnat Chat Organization: CAE Electronics Ltd. Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-06-09T00:00:00+00:00 List-Id: Quick question on GNAT... I can understand the need to call "adainit" when interfacing Ada to other programming languages. I'm a little unclear on why "adafinal" is required. My program is structured as follows... main() { adainit(); some_c_ada_fortran_c++_calls(); some_more_c_ada_fortran_c++_calls(); adafinal(); } I think the "adafinal" is not required, since my program is about to terminate anyway. (Is there garbage collection going on here?) And, in fact, the only reason I bring this up is because I'm getting a segmentation fault now and then during the adafinal() procedure, at "system__finalization_implementation__finalize_global_list (0x419, 0x2, 0x3, 0x1)"... (in "s-finimp.adb:146) It doesn't impact us in a negative way, since all the required work of the code has already been done. But, it's troubling anyway, and I'd like to resolve the problem... My platform SGI Irix 6.5 and the Ada compiler is SGI Ada 95 1.2, (Gnat v. 3.07). Thanks for any help! Viqar