jolly
VIP Member
How come JDB_Fetch on a BLOB column doesn\'t leak memory?
Hi All,
I'm writing a BSFN to copy rows (including a BLOB column) from one OW table to another. Looking into the code, JDB_Fetch fills in an uninitialised BLOBVALUE with a pointer to the BLOB data and it's length. Therefore JDB_Fetch must have allocated the memory to hold the BLOB data. However in various examples of code within OW that does this, there never seems to be a free of the BLOB data that JDB_Fetch allocated. Where does it get freed? How come loops that do this don't leak like crazy?
Just curious...
Cheers,
JohnO
Hi All,
I'm writing a BSFN to copy rows (including a BLOB column) from one OW table to another. Looking into the code, JDB_Fetch fills in an uninitialised BLOBVALUE with a pointer to the BLOB data and it's length. Therefore JDB_Fetch must have allocated the memory to hold the BLOB data. However in various examples of code within OW that does this, there never seems to be a free of the BLOB data that JDB_Fetch allocated. Where does it get freed? How come loops that do this don't leak like crazy?
Just curious...
Cheers,
JohnO