
UNSOLVED
E
edn_migrator
32 Posts
0
4389
July 28th, 2008 06:00
FPCLIP Close Exception
This discussion thread has been imported from the Centera Developer Portal Forums.
The first message is shown here, and the complete thread is in the attached PDF file.
Please read the PDF and continue the discussion here.
From dennis.white@osfhealthcar
Posted Thu Jul 24, 2008
Hello,
After reading the requested data from Centera, attempting to close the FPClip object throws an exception.
Code: |
public Boolean ReadFromCentera(string path, string clipID, string clusterAddress) { int numFiles = 0; Boolean blnReadFromCentera = true; try { FPPool thePool = new FPPool(clusterAddress); FPClip clipRef = new FPClip(thePool, clipID, FPMisc.OPEN_ASTREE); // Retrieve number of files(blobs) for looping numFiles = Convert.ToInt32(clipRef.GetAttribute("numfiles")); // Open the output file on the server FPStream streamRef = new FPStream(path, "wb"); FPTag tRef = null; // Loop throught the blobs writing then to the server. for (int i = 0; i < numFiles; i++) { tRef = (FPTag)clipRef.Tags+; if (tRef.ToString() == "FELOG") { tRef.BlobRead(streamRef, FPMisc.OPTION_DEFAULT_OPTIONS); } } streamRef.Close(); tRef.Close(); clipRef.Close(); clipRef.Dispose(); } catch (Exception ex) { blnReadFromCentera = false; this.SaveErrorMessages("ReadFromCentera(String)", "Method Failed, Application Retry Possible", ex); if (this.ThrowErrors) { throw new Exception(this.GetErrorMethod(), ex); } } |
Exception Info:
Code: |
|
Thank You,
Dennis
1 Attachment
Centera-viewtopic-FPCLIP Close Exception.pdf
Centera-viewtopic-FPCLIP Close Exception.pdf
Responses (0)
Solutions (0)
