Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> malloc problem after FETCH operation

malloc problem after FETCH operation

From: peckle <ngpl_at_cyberway.com.sg>
Date: 5 Aug 1998 07:36:53 GMT
Message-ID: <01bdc043$978b1be0$64010a80@griffon>

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US