X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C9C62D1BACC for ; Wed, 21 Apr 2004 21:25:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 03841-07 for ; Wed, 21 Apr 2004 21:25:23 -0300 (ADT) Received: from mclean.mail.mindspring.net (mclean.mail.mindspring.net [207.69.200.57]) by svr1.postgresql.org (Postfix) with ESMTP id C68C3D1B91B for ; Wed, 21 Apr 2004 21:25:19 -0300 (ADT) Received: from sdn-ap-002njpennp0090.dialsprint.net ([63.185.136.90] helo=mindspring.com) by mclean.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1BGS1p-0008Uh-00; Wed, 21 Apr 2004 20:25:22 -0400 Received: (from lbayuk@localhost) by mindspring.com (8.12.10/8.12.10) id i3LMdGvB000308; Wed, 21 Apr 2004 18:39:17 -0400 From: L J Bayuk Message-Id: <200404212239.i3LMdGvB000308@mindspring.com> Subject: Re: BLIBPQ.LIB, BLIBPQDLL.LIB or LIBPQ 7.4 problem To: bcsaba@balmazujvaros.hu Date: Wed, 21 Apr 2004 18:39:16 -0400 (EDT) Cc: pgsql-interfaces@postgresql.org In-Reply-To: <1082527024.40860d30d7fa8@mail.balmazujvaros.hu> from "bcsaba@balmazujvaros.hu" at Apr 21, 2004 07:57:04 AM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS, RCVD_IN_NJABL, RCVD_IN_SORBS X-Spam-Level: * X-Archive-Number: 200404/57 X-Sequence-Number: 4878 bcsaba@balmazujvaros.hu wrote: > ... > > I'am new on this list and i think i found a bug in the libpq libraries compiled > with a Borland compiler (tested with 7.4,7.4.1,7.4.2). I compiled the libpq > library with bcb 5 standard and it worked fine until i wanted to create a table > with a primary key. > > for example executing the following Query: > > this works fine: > create table a (b int ); > > this: > > create table a (b int primary key ); > > causes > > Access Violation at address xxxxxxxxxxx in module 'CC3250MT.DLL'. Read of > address F87E0200.. > > I did not know is this is the case with VC compiled libpq.dll (I do not have > Visual C), but with a VC compiled 7.3.4 the code works fine. > > Sorry, if i've reported a known problem, but i searched the archive before sent > this. > > P.S.: Anyone who could send me a working VC compiled LIBPQ (7.4.2) library, or > fixed BLIBPQ.LIB please do so. I think you might have hit the same problem I did when building blibpq.dll for http://gborg.postgresql.org/project/pgtclng/ Mine would crash whenever a notification message was received (like primary key create). The crash is in fprintf(stderr, ...), and the explanation I got was that the I/O runtime wasn't initialized properly inside the Borland DLL. But then, I was linking my BLIBPQ DLL with a MSVC-compiled program (ActiveTcl), so maybe your case is different. The fix was easy: link with Borland's "static" version of the runtime "cp32mt.lib" instead of "cp32mti.lib". But again: that was because I was using the BCC-compiled DLL with a MSVC-compiled program. Your case may be different, and your library name is different (CC3250MT), but look for a static runtime instead of an import library runtime and try linking with that.