Comments (7)
Compile as release mode and try again.
from sharpext4.
Same result in release mode:
from sharpext4.
Then it could be heap corruption.
from sharpext4.
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.
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.
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.
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)
- Exception when attempting to write text to file: "Could not read disk MBR." HOT 6
- Could not read disk MBR error HOT 9
- Could not mount partition error when read Flash Usb Ext4 HOT 1
- Error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. HOT 6
- (It can be simply modified to be compiled in Visual Studio 2013). How? HOT 4
- Error: Could not load file or assembly 'SharpExt4.dll' or one of its dependencies. The specified module could not be found. HOT 5
- Could not load file or assembly 'SharpExt4, Version=1.0.8402.18282 HOT 12
- How to read and write ext4 in vmdk HOT 4
- Unable to recognize EXT4 extended partition HOT 9
- Typo on ExtDisk "Partitions" getter HOT 1
- Open partition from a file system image? HOT 2
- Cannot mount ext4 partition HOT 9
- en/decryption support? HOT 1
- Open multiple image HOT 11
- Could Not Read Disk MBR HOT 1
- GPT partition HOT 8
- ext4 for bootmgr.efi (Windows 7, 8, 10, 11) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpext4.