Skip to content

Error in x86(32bit) #26

Open
Open
@cargfiloy

Description

@cargfiloy

OpenJpegDotNet is perfect in x64 but it's has a problem in x86.
I used your library to encode bitmap file to jpeg2000. However, the following problem occurred in x86.

var buffer = new Buffer
{
Data = outputBuffer,
Length = bufferLength,
Position = 0
};

Data has address, length has imageSize + 1024, Position is zero.
After setting StreamCreate, StreamSetUpdateData, SteamSetUserDataLength and CallBack. I start to encode.

But the following problem occurred in StreamWriteCallBack()

var buf = (Buffer*)userData;

buf->Data has address, buf->Length is zero and buf->position is imageSize + 1024.
I'm wondering why is change Length and Position?
Always buf->Length is zero condition, so it's return unchecked((ulong)-1);

I think maybe the OpenJpegDotNetNative.dll of 32bit and 64bit is different. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions