Code Monkey home page Code Monkey logo

Comments (7)

nickdu088 avatar nickdu088 commented on June 27, 2024

Compile as release mode and try again.

from sharpext4.

christopher-fabian avatar christopher-fabian commented on June 27, 2024

Same result in release mode:

grafik

from sharpext4.

nickdu088 avatar nickdu088 commented on June 27, 2024

Then it could be heap corruption.

from sharpext4.

christopher-fabian avatar christopher-fabian commented on June 27, 2024

Do you have any idea how to check if the heap is corrupted and/or how to fix it? Iā€˜m not familar with problems like this.

from sharpext4.

nickdu088 avatar nickdu088 commented on June 27, 2024

Just a quick glimpse the screen shot you attached, it seems you are using x64 release, as you can see ext4_write takes uint64 as input, however extfilestream passes int32.

You said you were copying large file (2gb). This may be the reason.

Try x86 mode, or use smaller file

from sharpext4.

christopher-fabian avatar christopher-fabian commented on June 27, 2024

Thank you for your tips.

I found out the error only occurs when ExtFileStream.Close() is called shortly before disposing.

If I skip closing the stream before disposing, it works.
But on the other hand I get a memory leak, the RAM is not released properly.

Is disposing not closing the stream at all? I think this would be the expected behavior.

Maybe we can improve the whole thing, Dispose should better not throw an error exception if the stream is closed.

from sharpext4.

nickdu088 avatar nickdu088 commented on June 27, 2024

ExtFileStream inherits . Net Stream class and override close.
https://github.com/nickdu088/SharpExt4/blob/main/SharpExt4/ExtFileStream.h#L37

It should be all handled by Stream base class.

from sharpext4.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.