comp.lang.ada
 help / color / mirror / Atom feed
* Adainit, Adafinal...
@ 1999-06-09  0:00 Viqar Abbasi
  0 siblings, 0 replies; only message in thread
From: Viqar Abbasi @ 1999-06-09  0:00 UTC (permalink / raw)
  To: Gnat Chat

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-06-09  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-09  0:00 Adainit, Adafinal Viqar Abbasi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox