UNSOLVED

edn_migrator

updated

18 years ago

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:

  • errorInfo EMC.Centera.FPTypes.ErrorInfo error -10207 int errorClass 3 ushort - errorInfo {EMC.Centera.FPTypes.FPErrorInfo} EMC.Centera.FPTypes.FPErrorInfo error -10207 EMC.Centera.FPTypes.FPInt errorClass 3 EMC.Centera.FPTypes.FPShort errorString "FP_OBJECTINUSE_ERR" string message "FPClip still in use" string systemError Zero EMC.Centera.FPTypes.FPInt trace "FPClip::Close(true) EMC.Centera.FPTypes.ErrorInfo

Thank You,

Dennis

1 Attachment