Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> malloc problem after FETCH operation
I have encountered a strange problem. Can anyone offer an explanation?
After I have executed the following statement:
EXEC SQL FOR :array_size FETCH MY_CURSOR USING DESCRIPTOR dp;
I don't seem to be able to malloc any memory block which is lesser than 13 bytes, ie, I must allocate a minimum block size of at least 13 bytes, else I will get an "access violation error". If I don't execute the above SQL statement, I have no problem with allocating a block of any size, even 1 byte is alright.
The compiler I'm using is Borland C++ 5.02 and the OS is Windows NT 4.0. The Oracle precompiler is ProC 2.2. Any help rendered is greatly appreciated. Received on Wed Aug 05 1998 - 02:36:53 CDT