Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Memory confusion ?
Hello,
I'm in trouble with a C code using OCI (Oracle Enterprise Edition 8.0.5) on
a Intel PPro with 4Gb of memory using UnixWare 7.0.1 and 7.1.
The sources are from previous people who had worked on nut unreachable. This
code has worked
perfectly until I made some change inside. After one week of investigations,
I finally be able to locate and reproduce exactly the problem.
After a while, the call to the function
AllocHandle(stmp,(dvoid**)&(bndp),OCI_HTYPE_BIND,0,(dvoid**)0)
returns OCI_ERROR.
Then, the program handle the error by calling
OCIErrorGet(errhd, (ub4) 1,
(text *) NULL, &errcode, errbuf, (ub4) sizeof(errbuf), OCI_HTYPE_ERR);
And failed by returning OCI_NO_DATA whitout of course filling any fields from errcode and errbuf (??????)
The most surprising is the instant of when the errors begin. If I put a simple 'printf("blabla");' (with the length of "blabla" at least 3 characters)in the body of the function which manages the errors or funtoins after. The errors begin at the start of the program (!). BUT If I put the 'printf' before the function error(...), the start of errors doesn't change.
Now, I am checking the x86 assembly output to see if the problem is not here.
After I will try a candle in the nearest church and make a prayer. :-)
Laurent.
ps: HHHHHHHHHHHHHHEEEEEEEEEEELLLLLLLLLPPPPPPPPPPP !!!!!!!!!!!!!!!!!!!!!!!Received on Tue Jun 29 1999 - 09:04:50 CDT