public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Larry Hall <cygwin-lh@cygwin.com>
To: Ted Yu <ted_yu@yahoo.com>, cygwin@cygwin.com
Subject: Re: DLL generation under Cygwin
Date: Tue, 04 May 2004 19:07:00 -0000	[thread overview]
Message-ID: <6.1.0.6.0.20040504150037.03180c70@127.0.0.1> (raw)
In-Reply-To: <20040504171944.76611.qmail@web12104.mail.yahoo.com>

If your DLL was built against the Cygwin DLL, you'll have difficulties
because the Cygwin DLL won't be loaded properly.  Try building with 
'gcc -mno-cygwin'.  Of course, if you need the POSIX APIs Cygwin 
provides, you'll now have to do some porting.

Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     



At 01:19 PM 5/4/2004, you wrote:
>Hi,
>Here is some information on exception:
>          if (!hFFT) {
>            hFFT = LoadLibrary("djbfft.dll");
>            status = GetLastError();    // 998 invalid memory
>access
>            rfour2d = (RFOUR2D) GetProcAddress(hFFT,
>"rfft2d_djb");
>          }
>
>000f77d0()
>fft_general_0(float * 0x02e90040, int 256, int 512,
>int 1) line 163 + 17 bytes
>bpcorr(const unsigned char * 0x02cedcf8, int 240, int
>320, int 0, int 0, int 240, int 320, const unsigned
>char * 0x02d00940, int -110, int 110, int -110, int
>110, int 4, int 4, int 2, float * 0x0223d0e0, float *
>0x0223d0a0, float * 0x0223d27c, float * 0x0223d060)
>line 1121 + 28 bytes
>
>Note: forwarded message attached.
>
>
>
>    
>        
>__________________________________
>Do you Yahoo!?
>Win a $20,000 Career Makeover at Yahoo! HotJobs  
>http://hotjobs.sweepstakes.yahoo.com/careermakeover X-Apparently-To: ted_yu@yahoo.com via 216.136.172.28; Mon, 03 May 2004 18:41:58 -0700
>Return-Path: <ted_yu@yahoo.com>
>Received: from 216.136.172.23  (HELO web12103.mail.yahoo.com) (216.136.172.23)
>  by mta133.mail.sc5.yahoo.com with SMTP; Mon, 03 May 2004 18:41:58 -0700
>Received: from [192.146.1.16] by web12103.mail.yahoo.com via HTTP; Mon, 03 May 2004 18:41:58 PDT
>Date: Mon, 3 May 2004 18:41:58 -0700 (PDT)
>From: Ted Yu <ted_yu@yahoo.com>
>Subject: Re: DLL generation under Cygwin
>To: DJ Delorie <dj@delorie.com>
>In-Reply-To: <200405020341.i423fK4n020958@envy.delorie.com>
>MIME-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>Content-Length: 442
>
>Hi, DJ:
>I produced a DLL with two exported functions through
>Cygwin.
>I also generated import library for it.
>When Windows application calls the function, I
>immediately encountered exception.
>I tried to call LoadLibrary() and got error 998 -
>invalid memory access.
>
>Any hint ?
>Thanks
>
>
>    
>        
>__________________________________
>Do you Yahoo!?
>Win a $20,000 Career Makeover at Yahoo! HotJobs  
>http://hotjobs.sweepstakes.yahoo.com/careermakeover 
>--
>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/ 


--
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/

  reply	other threads:[~2004-05-04 19:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-04 17:19 Ted Yu
2004-05-04 19:07 ` Larry Hall [this message]
2004-05-04 19:22   ` Ted Yu
2004-05-05 10:58     ` Dave Korn
     [not found] <1083689743.27609.ezmlm@cygwin.com>
2004-05-05 15:49 ` Ted Yu
2004-05-05 16:07   ` Igor Pechtchanski
2004-05-05 16:58     ` Ted Yu
2004-05-05 18:19       ` Igor Pechtchanski
2004-05-05 19:19         ` Ted Yu
2004-05-05 19:28           ` Igor Pechtchanski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6.1.0.6.0.20040504150037.03180c70@127.0.0.1 \
    --to=cygwin-lh@cygwin.com \
    --cc=cygwin@cygwin.com \
    --cc=ted_yu@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).