Re: Segmentation faults in PRO*C programs: HELP ??

From: Tommy Wareing <p0070621_at_brookes.ac.uk>
Date: 1995/06/27
Message-ID: <3soktv$q1g_at_cs3.brookes.ac.uk>#1/1


In article <3sfdpa$1doe_at_unix1.sncc.lsu.edu>, Venkatesh Rao says...
>
>We have a huge application involving C and Pro*C. I wanted to divide
>the application into different program modules, compile seperatly
>and link them all at the end. ( Which is ofcourse the usual thing to do)
>
>Sometimes when we have to call a function which has some embedded SQL
>but it is present in a different program module the
>application crashes with a core dump.
>
>We tried putting all the code into a single module and the application
>never gave any core dumps.
>
>I would appreciate if I can get some tips on this problem.
>
>Venkatesh

FWIW,
Since the Pre-compiler is single-pass, and doesn't support forward or external referencing, all references to a cursor must occur within the same source file. But I would have thought this would simply stop compiliation, rather than causing memory problems...

-- 
 _________________________   __________________________________________
/  Tommy Wareing          \ /  I've been looking for an original sin,  \
|  p0070621_at_brookes.ac.uk  X   One with a twist and a bit of a spin    |
\  0865-483389            / \     -- Pandora's Box, Jim Steinman       /
 ~~~~~~~~~~~~~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Tue Jun 27 1995 - 00:00:00 CEST

Original text of this message