Start a Conversation

Unsolved

This post is more than 5 years old

856

August 13th, 2012 20:00

.NET Wrapper and Stream Buffers

I am using vb 2010 and need to read a tag in to memory so can mine some data from it. I have to if alot of clips and writing it to a flie an mining from there is to slow.

Here is the code I am using and get error on on the "New FPStream" (line 14).

Is it a bug or am I doing something wrong?

        Pool.SetGlobalOption(FPMisc.OPTION_OPENSTRATEGY, FPMisc.LAZY_OPEN)

        Dim PoolID As String = "10.80.59.40"

        Dim CenteraPool As FPPool = New FPPool(PoolID)

        Dim TheClip As FPClip

        Dim TheTag As FPTag

        Dim ClipBuffer As IntPtr

        TheClip = New FPClip(CenteraPool, "1DHOA44RKSCH3eCOI5H2B6P62POG4139327GGT0HDS974I23BUMIM", FPMisc.OPEN_FLAT)

        TheTag = TheClip.TopTag

        Dim BlobStream As FPStream = New FPStream(ClipBuffer, TheClip.TotalSize, FPStream.StreamDirection.OutputFromCentera)

        TheTag.BlobRead(BlobStream)

        BlobStream.Close()

        TheTag.Close()

        TheClip.Close()

        CenteraPool.Close()

Error Info:

error: -1006

errorClass: 3

errorString: Wrong Parameter detected

systemError: 0

trace: FPStream_CreateBufferForOutput(buffer,48128)

No Responses!
No Events found!

Top