From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Problem with library images on Windows (again) Date: Fri, 03 Jun 2005 15:06:17 +0200 Message-ID: <853brzh9o6.fsf@lola.goethe.zz> References: <01c55d4a$Blat.v2.4$8e2e76e0@zahav.net.il> <428E065E.6040307@gnu.org> <01c55d54$Blat.v2.4$04c543c0@zahav.net.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117805188 15907 80.91.229.2 (3 Jun 2005 13:26:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Jun 2005 13:26:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 03 15:26:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DeCBB-0008Ov-9t for ged-emacs-devel@m.gmane.org; Fri, 03 Jun 2005 15:25:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DeCGs-0006LR-Mq for ged-emacs-devel@m.gmane.org; Fri, 03 Jun 2005 09:31:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DeCDi-0005LK-44 for emacs-devel@gnu.org; Fri, 03 Jun 2005 09:28:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DeCDg-0005K0-CY for emacs-devel@gnu.org; Fri, 03 Jun 2005 09:28:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DeCCn-0004mO-RR for emacs-devel@gnu.org; Fri, 03 Jun 2005 09:27:22 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DeBuu-000810-Az for emacs-devel@gnu.org; Fri, 03 Jun 2005 09:08:52 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DeBrK-0001DQ-1c; Fri, 03 Jun 2005 09:05:10 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 576CF1C000EF; Fri, 3 Jun 2005 15:06:17 +0200 (CEST) Original-To: Juanma Barranquero In-Reply-To: (Juanma Barranquero's message of "Fri, 3 Jun 2005 14:08:07 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38076 Juanma Barranquero 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