From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: How about using static link instead of dynamic loaded dlls? Date: Thu, 05 Jun 2003 21:38:57 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030605213617.855E.LEKTU@terra.es> References: <3EDF322A.4050807@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1054843337 19664 80.91.224.249 (5 Jun 2003 20:02:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2003 20:02:17 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 05 22:02:15 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19O0uL-0004z1-00 for ; Thu, 05 Jun 2003 22:00:21 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19O1CY-0004bo-00 for ; Thu, 05 Jun 2003 22:19:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19O0tX-000792-40 for emacs-devel@quimby.gnus.org; Thu, 05 Jun 2003 15:59:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19O0jN-0004gp-2h for emacs-devel@gnu.org; Thu, 05 Jun 2003 15:49:01 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19O0c5-0002Is-UD for emacs-devel@gnu.org; Thu, 05 Jun 2003 15:41:30 -0400 Original-Received: from smtp.terra.es ([213.4.129.129] helo=tsmtp6.mail.isp) by monty-python.gnu.org with esmtp (Exim 4.20) id 19O0Zi-0001DZ-3V; Thu, 05 Jun 2003 15:39:02 -0400 Original-Received: from [81.40.152.77] ([81.40.152.77]) by tsmtp6.mail.isp (terra.es) with ESMTP id HG0X8X01.66A; Thu, 5 Jun 2003 21:38:57 +0200 Original-To: Jason Rumney In-Reply-To: <3EDF322A.4050807@gnu.org> X-Mailer: Becky! ver. 2.06.02 Original-cc: Robin Hu X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14782 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14782 On Thu, 05 Jun 2003 13:06:02 +0100, Robin Hu and Jason Rumney wrote: > > While compiling with msvc with optimization turned on, Emacs will > > emit an access vilation exception while load a tiff file or a png > > file. I believe the problem is something related to lookup_image(), > > but debug an optimized program is really hard. ;-( Don't worry: with MSVC 7.0 it happens in non-optimized builds too. I'm going to test with 7.1 (aka Visual C++ .NET 2003) > Why is it hard? You should be able to get at least some idea of where it > is going wrong my single stepping through lookup_image. Maybe some of > the underlying machine instructions are not what you would expect from > looking at the current line, but that should not stop you from getting a > general idea of what is happening. We've already discussed this: you can step till png_load, and then bang! The crash happens inside the DLL, and the data being passed to the call seems correct... :( /L/e/k/t/u