0

I'm programming with libjpeg and the problem came. Fortunately, I found some answers here and tried feeding from jpeg_mem_src() rather than jpeg_stdio_src(), compiling pyd file with VS2010 or gcc, analyzing pyd with dependencywalker and adding some dlls. But these solutions all failed.

Could anyone tell me how to fix it?

Community
  • 1
  • 1
Leo
  • 43
  • 1
  • 8
  • 1
    You will need to provide more information, what are you trying to do? are you creating the image that causes the crash? what is the crash information you got? are you able to open jpeg you downloaded from the internet with your code? – Noam Rathaus Dec 29 '13 at 12:52
  • I'm trying to read DCT coefficients from jpeg file. According to debugging, it always said unhandled exception caused by writing accessing violation. – Leo Dec 30 '13 at 04:25
  • 1
    That error sounds like either your code is invalid, or the image is, did you try to download some image from the Internet and see if it works with it? – Noam Rathaus Dec 30 '13 at 08:01
  • 1
    Thank you! I solved it myself by using jpeglib-static.lib of libjpeg-turbo. – Leo Dec 30 '13 at 16:06

0 Answers0