Ehsan, We had a similar problem recently. The program would core dump when the size of a static array of structures was increased. Static variables get allocated from the stack and not the heap. If the same variables are declared globally (outside of main) or declared as pointers and memory allocated using malloc, then the memory is allocated from the data segment.
Regards, Denny --- [EMAIL PROTECTED] wrote: > Ehsan, > > I've been using Pro*C for the last 18 years & > have compiled some really > large programs without a problem. Actually I've had > the precompiler find errors > in my code that the compiler missed, so I really > don't see a problem. On the > other hand I do have OCI programs running around, > which I've been in the habit > of converting to Pro*C. If you want to forward the > config file, source (if your > boss will let you) and the version/os your using I > may be able to help. > > Dick Goulet > > ____________________Reply > Separator____________________ > Author: ehsan sinavalda <[EMAIL PROTECTED]> > Date: 2/28/2002 4:23 AM > > > Hi All > > I have some problems with proc. the most important > is that when PROC config file > exceeds 100 lines the proc precompiler stops with a > "Segmentation Fault". It > seems that they have used a static array !!! What > is your opinion. > > Also the I receive many errors from standard include > files in /usr/include/ when > I run precompiler. > > Do you think that I took mistake or the precompiler > is such weak? what is your > opinion? Do you suggest switching to OCI? > > Thanks > > Ehsan ===== -- Denny Koovakattu [EMAIL PROTECTED] http://oneco.net/ __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Denny Koovakattu INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
