Hi Paul,
I have put where and checked in dbx.I forgot to paste that.
(dbx) where
current thread: t@1
[1] 0xf9552610(0xfe5694d0, 0x0, 0xfe56a084, 0x1083287b, 0x0, 0x0), at
0xf955260f
[2] tdb_mutex_stats(0xfe240588, 0x162f4, 0x0, 0xff3a4400, 0x0, 0x0),
at 0xfe554bf4
[3] mutex_lock_internal(0x0, 0x0, 0xfde40000, 0xfe23c000, 0x1,
0x1000), at 0xfe551d3c
[4] malloc(0x2e694, 0xff352c00, 0xfe1c6794, 0xff353440, 0xff352000,
0x1), at 0xfe1c67ac
[5] malloc(0x2e681, 0x0, 0x2, 0xffbfdd70, 0x2e681, 0x2e694), at
0xff32f3bc
[6] operator new(0x2e681, 0xffffffff, 0x13b84, 0xff32ee34,
0xfe66a07c, 0x2e681), at 0xfe65651c
=>[7] TEST::AllocateMem(this = 0xffbffa58, iSize = 190081), line 94 in
"test.h"
[8] TEST::ProcessRequest(this = 0xffbffa58), line 1320 in "test.cc"
[9] TEST::OracleCall(this = 0xffbffa58), line 414 in "test.cc"
[10] main(), line 184 in "main.cc"
here in my code what i'm trying to do is ..
we have to fetch some 200000 bytes of data from Clob field in oracle
table and trying to put in buffer.For this i have kept buffer size to
some 200001 bytes and trying to fetch the data.
In doing this am getting error as above.
The code is like
This function present in test.h:
char *pReturn;
void AllocateReturn(long iSize) { pReturn = new char [iSize]; };
and in test.cc we r calling this by as:
AllocateReturn(200001);
and am deallocating the pointer by
void DeallocateDFReturn() { delete [] pDFReturn; };
Please advise whether i can have this much of bytes in char pointer??
Regards.
|