Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 7D8A59FBC29 for ; Thu, 8 Mar 2007 13:43:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 89790-01 for ; Thu, 8 Mar 2007 13:43:55 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from yucaipaco.com (yucaipaco.com [82.165.181.113]) by postgresql.org (Postfix) with ESMTP id D23E79FA45F for ; Thu, 8 Mar 2007 13:43:55 -0400 (AST) Received: (qmail 1381 invoked by uid 210); 8 Mar 2007 09:46:28 -0800 Received: from 10.23.112.236 by yucmail (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.88.2/1624. f-prot: 4.6.5/3.16.13. spamassassin: 3.1.3. perlscan: 1.25st. Clear:RC:1(10.23.112.236):. Processed in 0.307587 secs); 08 Mar 2007 17:46:28 -0000 Received: from unknown (HELO ?10.23.112.236?) (yucrelay@10.23.112.236) by yucaipaco.com with ESMTPA; 8 Mar 2007 09:46:27 -0800 Message-ID: <45F04B57.9010401@yucaipaco.com> Date: Thu, 08 Mar 2007 09:43:51 -0800 From: David Gardner User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Paul Lambert CC: pgsql-odbc@postgresql.org Subject: Re: Access violation - probably not the fault of Postgres References: <45EF749F.5030107@autoledgers.com.au> In-Reply-To: <45EF749F.5030107@autoledgers.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/57 X-Sequence-Number: 8735 Could you post the code in question? How are you initializing your recordset object? Have you tried feeding the database object an insert statement via the execute() function? Paul Lambert wrote: > I've got an application written in VB which pipes updates to a > database in Postgres. The application is written in MS Visual Basic > 6.0 using DAO3.6 via ODBC. > > If a record exists in the PG database and my VB app therefore does an > Edit/Update, it works without a problem. > > If the record doesn't exist and I therefore need to do an > AddNew/Update my client application crashes with an access violation > on the update. > > I'm relatively sure it's something on the VB side that is causing this > and nothing to do with PG, but I'm just posting here in case anyone > has some thoughts about potential causes within PG or its ODBC driver. > > Any thoughts would be welcome. > > Thanks, > Paul. >