I have downloaded lzma 9.20 SDK from http://www.7-zip.org/sdk.html and tried to compile lzmalib using the project included in the SDK. The lzma lib works fine in my project (debug and release dll).
However, since lzma lib does not provide incremental compression/decompression, I modified the project to export API for incremental compression/decompression. I can compile the lzma lib (debug & release dll); but I can only use debug dll in my project. I encounter the crash when using release dll.
Below is the snapshot of my problem:
Stack trace:
CompressDPD.exe!FreeForLzma(void * p=0x10001093, void * address=0x00010000) Line 259 + 0xb bytes C++
LZMA.dll!1000104e()
CompressDPD.exe!Encode(ISeqOutStream * outStream=0x0110f2a8, ISeqInStream * inStream=0x00000000, unsigned __int64 fileSize=7680240) Line 307 + 0x17 bytes C++
CompressDPD.exe!wmain(int argc=, wchar_t * * argv=) Line 617 + 0x18 bytes C++
Error message:
First-chance exception at 0x77d41f81 in CompressDPD.exe: 0xC0000005: Access violation reading location 0x0000ffff.
Unhandled exception at 0x77d41f81 in CompressDPD.exe: 0xC0000005: Access violation reading location 0x0000ffff.
Appreciate any help since it is quite urgent for my project.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I have downloaded lzma 9.20 SDK from http://www.7-zip.org/sdk.html and tried to compile lzmalib using the project included in the SDK. The lzma lib works fine in my project (debug and release dll).
However, since lzma lib does not provide incremental compression/decompression, I modified the project to export API for incremental compression/decompression. I can compile the lzma lib (debug & release dll); but I can only use debug dll in my project. I encounter the crash when using release dll.
Below is the snapshot of my problem:
Stack trace:
Error message:
First-chance exception at 0x77d41f81 in CompressDPD.exe: 0xC0000005: Access violation reading location 0x0000ffff.
Unhandled exception at 0x77d41f81 in CompressDPD.exe: 0xC0000005: Access violation reading location 0x0000ffff.
Appreciate any help since it is quite urgent for my project.
You should use another forum:
http://sourceforge.net/p/sevenzip/discussion/45797
Thanks.
Created new discussion for this at:
https://sourceforge.net/p/sevenzip/discussion/45797/thread/5c9a7fd2/