pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedIllegal access violation
5+ messages / 3 participants
[nested] [flat]
* Illegal access violation
@ 2005-07-26 13:56 Bob Caryl <bob@fis-cal.com>
0 siblings, 1 reply; 5+ messages in thread
From: Bob Caryl @ 2005-07-26 13:56 UTC (permalink / raw)
To: pgsql-odbc
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?
Thanks,
Bob Caryl
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Illegal access violation
@ 2005-07-26 14:02 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 1 reply; 5+ messages in thread
From: Dave Page @ 2005-07-26 14:02 UTC (permalink / raw)
To: Bob Caryl <bob@fis-cal.com>; pgsql-odbc
> -----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.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Illegal access violation
@ 2005-07-26 14:13 Joel Fradkin <jfradkin@wazagua.com>
parent: Bob Caryl <bob@fis-cal.com>
0 siblings, 0 replies; 5+ messages in thread
From: Joel Fradkin @ 2005-07-26 14:13 UTC (permalink / raw)
To: 'Bob Caryl' <bob@fis-cal.com>; pgsql-odbc
I am no expert, and am not sure what your app is, but you could try changing
your connection to allow logs (c:\mylog) , in this way you can see what is
happening and post it here for better analysis.
Debug=1 turns logs on in a dsn less connection.
For IIS you have to give permission for Iuser to write to the c drive.
Joel Fradkin
-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Bob Caryl
Sent: Tuesday, July 26, 2005 9:56 AM
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?
Thanks,
Bob Caryl
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Illegal access violation
@ 2005-07-26 14:52 Bob Caryl <bob@fis-cal.com>
parent: Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 5+ messages in thread
From: Bob Caryl @ 2005-07-26 14:52 UTC (permalink / raw)
To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Illegal access violation
@ 2005-07-26 15:35 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 5+ messages in thread
From: Dave Page @ 2005-07-26 15:35 UTC (permalink / raw)
To: Bob Caryl <bob@fis-cal.com>; +Cc: pgsql-odbc
> -----Original Message-----
> From: Bob Caryl [mailto:bob@fis-cal.com]
> Sent: 26 July 2005 15:53
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Illegal access violation
>
> 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.
Hi Bob,
I don't know anything about CRecordset's, but you shouldn't generally
need to use updateable cursors to do simple inserts - they are normally
used for updating records in large resultsets.
Regards, Dave.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2005-07-26 15:35 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-26 13:56 Illegal access violation Bob Caryl <bob@fis-cal.com>
2005-07-26 14:13 ` Joel Fradkin <jfradkin@wazagua.com>
2005-07-26 14:02 Re: Illegal access violation Dave Page <dpage@vale-housing.co.uk>
2005-07-26 14:52 ` Bob Caryl <bob@fis-cal.com>
2005-07-26 15:35 Re: Illegal access violation Dave Page <dpage@vale-housing.co.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox