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 9050C52EC1 for ; Tue, 26 Jul 2005 11:51:34 -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 29812-04 for ; Tue, 26 Jul 2005 14:51:32 +0000 (GMT) Received: from mailrtr1.mailzone.edeltacom.com (mailrtr1.mailzone.edeltacom.com [216.248.176.149]) by svr1.postgresql.org (Postfix) with ESMTP id 8BBCA52EBD for ; Tue, 26 Jul 2005 11:51:26 -0300 (ADT) Received: from [192.168.1.30] ([216.248.189.97]) by mailrtr1.mailzone.edeltacom.com (MOS 3.5.9-GR) with ESMTP id CAG99463; Tue, 26 Jul 2005 10:51:12 -0400 (EDT) Message-ID: <42E64E3C.2060401@fis-cal.com> Date: Tue, 26 Jul 2005 09:52:44 -0500 From: Bob Caryl User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page Cc: pgsql-odbc@postgresql.org Subject: Re: Illegal access violation References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200507/152 X-Sequence-Number: 5617 Dave Page wrote: > > > > >>-----Original Message----- >>From: pgsql-odbc-owner@postgresql.org >>[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Bob Caryl >>Sent: 26 July 2005 14:56 >>To: pgsql-odbc@postgresql.org >>Subject: [ODBC] Illegal access violation >> >>Hello all: >> >>I am using the latest version of postgresql (version 8.03) on a linux >>machine as my server. I also using the latest version of the >>postgresql >>odbc driver (08_00_0101) on my WinXP platform. I have updateable >>cursors enabled on the odbc driver. I am trying to simply >>add a new row >>to my table on the linux machine, and when I call the >>CRecordset::Update >>method my application crashes with a memory access violation every >>time. Using the debugger and stepping through the code, the crash >>apparently happens in the .dll code. According to logs client and >>server side, this crash occurs before any attempt is made to >>do anything >>server-side. >> >>Has anyone else seen this, and if so what might I be doing wrong here? >> >> > >The updateable cursor option is known to be a little unstable (which is >why it's marked experimental). Can you please try the latest libpq based >driver from http://www.postgresql.org/ftp/odbc/versions/snapshots/ and >see how it performs please? > >Regards, dave. > > > Hey Dave, This was, apparently my problem. I was not using the correct version of the obdc driver for WinXP. As to the updateable cursors issue: The only operation I am doing here is adding records to a table back on my linux routine. Upon opening my CRecordset object I do not even retrieve any records, simply supplying the table name where one would normally insert a query to retrieve rows. Hence, I am hoping that I don't run afoul of any of the problem areas for updateable cursors. Assuming I'm naive about this, I would love a URL to which I can point my browser for more information on this subject. Thanks! Bob Caryl