pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PSQLODBC.DLL unhandled exception
2+ messages / 2 participants
[nested] [flat]

* PSQLODBC.DLL unhandled exception
@ 2005-04-11 13:57 Szeszler Zsolt <szeszler@aitia.hu>
  0 siblings, 0 replies; 2+ messages in thread

From: Szeszler Zsolt @ 2005-04-11 13:57 UTC (permalink / raw)
  To: pgsql-odbc

Hi!

 

I have written an MFC (VC++ 7) application, where I have used a VS7-wizard
generated class inherited from CRecordset to access a table in a Postgre db.

 

I have rarely got an unhandled exception (Access violation) in psqlodbc.dll
(version 08.00.0101).

 

Could someone help me solve my problem?

 

Thank you in advance,

 

Szeszko

 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PSQLODBC.DLL unhandled exception
@ 2005-04-13 03:26 江文 <jiangwen365@sohu.com>
  0 siblings, 0 replies; 2+ messages in thread

From: 江文 @ 2005-04-13 03:26 UTC (permalink / raw)
  To: pgsql-odbc


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-04-13 03:26 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-11 13:57 PSQLODBC.DLL unhandled exception Szeszler Zsolt <szeszler@aitia.hu>
2005-04-13 03:26 Re: PSQLODBC.DLL unhandled exception 江文 <jiangwen365@sohu.com>

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