delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/25/06:37:46

From: mlx AT san DOT rr DOT com (Steve Biskis)
Subject: Init cygwin.dll from non-gnuwin app ???
25 Feb 1998 06:37:46 -0800 :
Message-ID: <199802242014.MAA26711.cygnus.gnu-win32@proxyb2.san.rr.com>
Reply-To: <mlx AT san DOT rr DOT com>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

Can the CRT/reent section of cygwin.dll be initialized in a 
non-gnuwin32 application ???  I am currently trying to do it
via a gnuwin32 generated dll by directly calling cygwin_crt0()
and being rewarded with:

0xXXXXXXXX referenced memory at "0x100476c0". The memory could not be
"written".

This error (by its address 0x10000000+) is at least in the right cygwin.dll
neighborhood.

This happens to be a Delphi-3 application that does a LoadLibrary on my
dll.
My dll works fine till it needs CRT facilities from cygwin.dll.  
I know about the _impure_ptr=__imp_reent_data thing but that's not enough
since, somehow cygwin.dll hasn't really been initialized yet, (hmmmm ).
Why wasn't this done in its DllMain ??????????

Any suggestions welcome (no matter how far-fetched/hack-happy).

da bisk

mlx AT san DOT rr DOT com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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