X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6880A52B4E for ; Sun, 7 Aug 2005 15:33:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95933-07 for ; Sun, 7 Aug 2005 18:33:44 +0000 (GMT) Received: from Mail2.KONTENT.De (mail2.kontent.de [81.88.34.59]) by svr1.postgresql.org (Postfix) with ESMTP id 3106B52B24 for ; Sun, 7 Aug 2005 15:33:42 -0300 (ADT) Received: from jedi.behrens.de (p508585C1.dip0.t-ipconnect.de [80.133.133.193]) by Mail2.KONTENT.De (Postfix) with ESMTP id 8462E388050 for ; Sun, 7 Aug 2005 20:33:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by jedi.behrens.de (Postfix) with ESMTP id BB8AC1A44F for ; Sun, 7 Aug 2005 20:33:41 +0200 (CEST) Received: from jedi.behrens.de ([127.0.0.1]) by localhost (jedi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17270-04 for ; Sun, 7 Aug 2005 20:33:41 +0200 (CEST) Received: from anakin (anakin.behrens.de [192.168.150.240]) by jedi.behrens.de (Postfix) with ESMTP id 94FC91A44E for ; Sun, 7 Aug 2005 20:33:41 +0200 (CEST) From: lothar.behrens@lollisoft.de To: pgsql-odbc@postgresql.org Date: Sun, 07 Aug 2005 20:33:41 +0200 MIME-Version: 1.0 Subject: SQLFreeStmt problem ? Message-ID: <42F67025.14105.BF0B15@localhost> X-mailer: Pegasus Mail for Windows (4.21c, DE v4.21c R1a) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.307 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, NO_REAL_NAME, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200508/72 X-Sequence-Number: 5711 Hi, I have the following problem when running my function under Linux: The application hangs in a semop function call while the second SQLAllocSt= mt call. Any ideas ? Thanks, Lothar retcode =3D SQLAllocStmt(hdbc, &hstmt); // ... retcode =3D SQLForeignKeys(hstmt, NULL, 0, NULL, 0, szTable, SQL_NTS, NULL, 0, NULL, 0, NULL, 0); while ((retcode =3D=3D SQL_SUCCESS) || (retcode =3D=3D SQL_SUCCESS_WITH_IN= FO)) { // ... retcode =3D SQLFetch(hstmt); if (retcode =3D=3D SQL_SUCCESS || retcode =3D=3D SQL_SUCCESS_WITH_INFO) { lbErrCodes err =3D ERR_NONE; if (isVerbose()) printf("%-s ( %-s ) <-- %-s ( %-s )\n", szPkTable, szPkCol, szFkTable, szFkCol); } } SQLFreeStmt(hstmt, SQL_DROP); retcode =3D SQLAllocStmt(hdbc, &hstmt); // <------------------- Hang -----= ------------------------ -- Lothar Behrens | Rapid Prototyping ... Rosmarinstr 3 | 40235 D=FCsseldorf | www.lollisoft.de