Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

2085

June 14th, 2011 12:00

Pool.GetCapability throwing FPException

Hi all

I am facing a problem with this function - I want to know if the Centera device I connect to, has delete allowed or not. When I query the capability using the code below, it fails. Can you help me correct it?

Dim outName As System.Text.StringBuilder  = New System.Text.StringBuilder()

' Variant 1

100:    Pool.GetCapability(poolRef, EMC.Centera.FPApi.FP.DELETE, EMC.Centera.FPApi.FP.ALLOWED, outName, 128)

' Variant 2
200:    Pool.GetCapability(poolRef, '"FP_DELETE", "FP_ALLOWED", outName, 128)

Both these variants fail. Appreciate your help very much on this.

Regards

Rajesh.R

409 Posts

June 16th, 2011 12:00

what error is being generated?

409 Posts

June 14th, 2011 12:00

what exception is thrown?

6 Posts

June 16th, 2011 07:00

FPTypes.FPLibraryException

6 Posts

June 19th, 2011 00:00

Can you advise, how do you want me to check ? I dont think it is any use trying this myself.

Sub Main()
        Dim poolRef As FPPool
        Dim newpcStr1 As String = "128.221.200.180"
        Dim pPEAFile As String = "C:\Centera\ASIDataServices\Test\emea2_profile1_rdqeDcw1.pea"
        poolRef = New FPPool(newpcStr1 & "?" & pPEAFile)
        Dim outName As System.Text.StringBuilder ' = New System.Text.StringBuilder()
        On Error GoTo 600
100:    Pool.GetCapability(poolRef, EMC.Centera.FPApi.FP.DELETE, EMC.Centera.FPApi.FP.ALLOWED, outName, 128)
        ' - the following also was tried, but of no use

        ' "FP_DELETE", "FP_ALLOWED", outName, 128)
150:    If String.Compare(outName.ToString(), EMC.Centera.FPApi.FP.TRUE) = 0 Then
            Debug.Print("Can delete clip - capability present")

        Else
            Debug.Print("Can delete clip - capability NOT present")
        End If
600:
        MsgBox(Pool.GetLastError) 'throws EMC.Centera.FPTypes.FPLibraryException

End Sub

No Events found!

Top