This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Call dynamic pointer
- From: Ronald Landheer-Cieslak <ronald at landheer dot com>
- To: Lucien Mathieu <lucien dot mathieu at skynet dot be>
- Cc: cygwin at cygwin dot com
- Date: Mon, 21 Jul 2003 15:47:59 +0200 (CEST)
- Subject: Re: Call dynamic pointer
On Mon, 21 Jul 2003, 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?
>
> Thanks in advance,
You're not providing nearly enough information about your problem. Have a
look at http://www.cygwin.com/problems.html for more information.
HTH
rlc
--
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/