From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31613 invoked by alias); 4 May 2004 19:07:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 31580 invoked from network); 4 May 2004 19:07:43 -0000 Received: from unknown (HELO ns2.prospeed.net) (12.46.111.132) by sources.redhat.com with SMTP; 4 May 2004 19:07:43 -0000 Received: from enterprise-e.cygwin.com ([12.46.110.44]) by ns2.prospeed.net (8.12.10/8.12.8) with ESMTP id i44JGu0M016323; Tue, 4 May 2004 15:16:57 -0400 Reply-To: Cygwin List Message-Id: <6.1.0.6.0.20040504150037.03180c70@127.0.0.1> X-Sender: Date: Tue, 04 May 2004 19:07:00 -0000 To: Ted Yu , cygwin@cygwin.com From: Larry Hall Subject: Re: DLL generation under Cygwin In-Reply-To: <20040504171944.76611.qmail@web12104.mail.yahoo.com> References: <20040504171944.76611.qmail@web12104.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2004-05/txt/msg00115.txt.bz2 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: >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 >Subject: Re: DLL generation under Cygwin >To: DJ Delorie >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/