delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/30/10:34:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Info: This message was accepted for relay by
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication
X-Trace: UmFuZG9tSVYDaW24Uq0oE1DYxKydnNG8kmcrxJpE52KE7bhVisn6EH5iL9Sr1FCr
Message-ID: <3F0049FB.1040105@rfk.com>
Date: Mon, 30 Jun 2003 10:32:27 -0400
From: "Larry Hall (RFK Partners, Inc.)" <lhall AT rfk DOT com>
Reply-To: lhall AT rfk DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Anders Johansson <ajh AT watri DOT org DOT au>
CC: cygwin AT cygwin DOT com
Subject: Re: Matlab and cygwin dll files
References: <20030630112404 DOT GD19058 AT watri DOT org DOT au>
In-Reply-To: <20030630112404.GD19058@watri.org.au>

Anders Johansson wrote:

> Hi,
> 
> I have a problem, I have used cygwin to port a Matlab mex file for
> reading XML files from Linux to Windows XP. A mex file is a renamed
> dll file in Windows.


Presumably what you're saying here is that the mex files are Windows
DLLs when built on Windows.  If you're just renaming a file from Linux
to <file>.DLL on Windows, there will be problems.


> The fist time I load the mex file in matlab after a reboot it runs
> perfectly. If I exit Matlab and restart if a second time it still runs
> fine. After the third restart it crashes matlab every time I run it. I
> have tried to strip the file to nothing to make sure there aren't any
> bugs in the file that causes the problems. Sometimes after I rebuild
> the file (without changing anything in the functional structure of the
> file) I can run it again. 


I can't comment on this as I know nothing about Matlab.


> I have seen similar problems posted by other people but no replies.
> The problem seems to originate from loading and unloading of the
> cygwin1 dll. 


If this is really the problem, just keep bash or some other Cygwin program
running while you're using Matlab.  I'm not suggesting this as some
sort of weird solution.  Simply as a way to rule in or out your
supposition.  My guess is you're not going to see a real solution without
some time spent debugging with a debugger.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019