Juanma Barranquero <[EMAIL PROTECTED]> writes: >> Cool. So, for the first time, the image support on MSVC builds is as >> stable as on MinGW builds. > > Well, I spoke too soon. > > I have another problem with image support on MSVC builds. It is, > AFAICS, unrelated to the previous problem with the calling convention > of the libraries. > > Doing > > (insert-image-file "c:/image/test/myimage.png") > > works, at works C-o from dired. However, either one of: > > (insert-image (create-image "c:/image/test/myimage.png")) > (put-image (create-image "c:/image/test/myimage.png") 0) > > crashes. In other words: png_load, and jpeg_load, die an horrible death from: > > (image :type xxx :file "...") > > but they have no trouble with > > (image :type xxx :data "...") > > png_load, for example, dies at the call to > > fn_png_read_info (png_ptr, info_ptr); > > on png_load, while jpeg_load dies at: > > fn_jpeg_read_header (&cinfo, 1); > > Any clues about what can be happening?
The files are not opened in binary mode or something like that? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel