www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/06/23/07:27:21

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: EXE(non-cygn)->DLL(cygn)->cygwinb19.dll
23 Jun 1998 07:27:21 -0700 :
Message-ID: <199806231350.JAA19749.cygnus.cygwin32.developers@kramden.cygnus.com>
To: cygwin32-developers AT cygnus DOT com, michal AT dkslwz DOT cr DOT usgs DOT gov

>From: Michal Kouril <michal AT dkslwz DOT cr DOT usgs DOT gov>
>Date: Tue, 23 Jun 1998 08:35:31 -0500
>
>Problem:
>I have application that calls my DLL compiled using gnu-win32.
>My Dll tries to use functions from cygwinb19 but dll_crt0_1 function was
>not called by exe (I can't recompile exe).
>So I have to call dll_crt0_1 in my DLL. It does not work because
>in the end of dll_crt0_1 is exit and it exists the whole cygwinb19.dll.
>
>Solution:
>I suggest to put the following condition in the end of dll_crt0_1.
>
>dll_crt0_1 (per_process *uptr)
>...
>if (u->main)
>   exit (u->main (argc, argv, *u->envptr));
>}

That seems like a reasonable thing to do.  I've added this to the sources.

-Chris

- Raw text -


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