delorie.com/archives/browse.cgi | search |
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: | UmFuZG9tSVYTQjejB22GooU2zpBl3AchIwsIleXOH1n/iCOjMEJU0uU0UcjrFaAw |
Message-ID: | <3F1BFA92.5070707@cygwin.com> |
Date: | Mon, 21 Jul 2003 10:37:06 -0400 |
From: | Larry Hall <cygwin-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 |
X-Accept-Language: | en-us, en |
MIME-Version: | 1.0 |
To: | Lucien Mathieu <lucien DOT mathieu AT skynet DOT be> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: Call dynamic pointer |
References: | <001401c34f79$402576a0$837588d9 AT arthas> |
In-Reply-To: | <001401c34f79$402576a0$837588d9@arthas> |
Lucien Mathieu wrote: > Hello, > > in a dll, I'm calling a > > extern "C" { > void * init(); > } > > where it is define as follow > > void * init() { > return (new TObject()); > } > > it's doing a segment fault, > does the new pointer is automatically deleted? > > I was thinking not to use the dlclose in the main program, > but it doesn't work either. > > Any idea how to return a pointer from a DLL to a main program? Is this issue Cygwin specific? If so, please provide details of the problem if you'd like someone here to be able to help solve it. Otherwise, you might want to make a similar inquiry to a Windows C++ development forum. I'd suggest including sample code that reproduces the problem too. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |