Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Lucien Mathieu" To: Subject: Call dynamic pointer Date: Mon, 21 Jul 2003 13:14:28 +0200 Message-ID: <001401c34f79$402576a0$837588d9@arthas> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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? Thanks in advance, Lucien. -- 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/