Help Oblob code stopped working (oo4o)
Date: Wed, 31 Jan 2001 16:29:47 GMT
Message-ID: <959ehe$i8m$1_at_nnrp1.deja.com>
I was working with 0040 2.3 and upgraded to the version that comes with 8i and some code that previously worked stopped working.
I put in some try catch wrappers and changed a couple of things but I cannot get anything to work.
Previously it was this
if(0 != oDynamicSet.GetFieldValue(_T("WORKBOOK"), lpszCompressedBlob, lBlobLength, &lBytesRead))
but that started throwing exceptions with no error text in them . So I changed this to
OBlob blob;
try
{
if(0 != oDynamicSet.GetFieldValue(_T("WORKBOOK"), &blob)) return false;
bool b;
b = blob.IsNull();
b = blob.IsOpen();
}
this code blows up right when I call the IsNull returning error code 16 #define OERROR_NOTOPEN 16 // attempt to use unopened object
If i move IsOpen up above it returns false.
I don't know how I'm supposed to open it other than the getfieldvalue call. This is pretty much the same as the sample code.
Anyone know what I'm doing or oracle is doing that is wrong. Like I said this code worked fine before the upgrade.
Thanks
Sent via Deja.com
http://www.deja.com/
Received on Wed Jan 31 2001 - 17:29:47 CET