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 8E7B953ADA for ; Wed, 13 Apr 2005 03:22:28 -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 08224-01 for ; Wed, 13 Apr 2005 06:22:25 +0000 (GMT) Received: from webstmp3.mail.sohu.com (unknown [61.135.145.20]) by svr1.postgresql.org (Postfix) with ESMTP id D578753BD2 for ; Wed, 13 Apr 2005 03:22:23 -0300 (ADT) Received: from mx37.mail.sohu.com (unknown [192.168.41.209]) by webstmp3.mail.sohu.com (Postfix) with ESMTP id 879A22127062 for ; Wed, 13 Apr 2005 11:26:38 +0800 (CST) Message-ID: <22584245.1113362796308.JavaMail.postfix@mx37.mail.sohu.com> Date: Wed, 13 Apr 2005 11:26:36 +0800 (CST) From: "=?UTF-8?B?5rGf5paH?=" To: Subject: Re: PSQLODBC.DLL unhandled exception Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Sohu Web Mail 2.0.13 X-SHIP: 68.20.140.7 X-Priority: 3 X-SHMOBILE: 0 X-Sohu-Antivirus: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.384 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS, FROM_ENDS_IN_NUMS X-Spam-Level: ** X-Archive-Number: 200504/45 X-Sequence-Number: 5204 Hi, Just want to claim that I have the similar problem while using ODBC to connect PostgreSQL in Python. Below is the Python script: import dbi,odbc while True: print 'connecting Postgres' b=odbc.odbc("HScode") # PostgreSQL DSN print 'getting postgres cursor' bc=b.cursor() bc.execute('select * from latest_parts limit 1') #do some operations #print bc.fetchall() bc.close() b.close() Run this program on my machine, and Python would crash exactly the fifith loop, after printing out "connecting Postgres", a dialog box would appear saying something like: Python have referenced a memory address that can not be read(write?). Also a strangeness is: Increase the number after LIMIT, say 7, and Python could go further, maybe 60 loops; increase it to 100, that is 'select * from latest_parts limit 100', and Python could almost pass the loop block successfully! Regards, Henry