From: Roadkill <roa...@gr...> - 2005-07-20 17:30:09
|
Glenn Randers-Pehrson wrote: >At 11:50 PM 7/19/2005 -0700, Jenny Pan wrote: > > >>The function png_read_info() fail on runtime with the >>"access violation" error message. It was compiled with >>MSVC++ 6.0, MSoftXP, libpng 1.2.8. zlib 1.0.4. >>Any idea how to fix this problem? >> >> >Make sure you are not actually running with an older libpng.so > > > You might be having a problem with png's jmpbuf method of error recovery. The suggested method of setjmp(png_jmpbuf(png_ptr)) doesn't work in C++ (I'm sure it doesn't work in windows). This is because C++ uses a different calling convention than C. Use a try-catch around all of your read code instead. Tyler -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.9.2/52 - Release Date: 19/07/2005 |