Skip site navigation (1) Skip section navigation (2)

after application close MS Visual C++ runtime library error occurs

From: Peter Irbizon <peterirbizon(at)gmail(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: after application close MS Visual C++ runtime library error occurs
Date: 2012-01-11 14:21:09
Message-ID: CABFuWSzq32Jj--v1LkKvRi83t=t5uHrOsT_7pKL_4hcFtwqfCQ@mail.gmail.com (view raw or flat)
Thread:
Lists: psycopg
Hello, I am using psycopg2 in windows app for example:
import psycopg2
import psycopg2.extras
self.con = psycopg2.connect("dbname= host= user= password= port=");
self.cur = self.con.cursor(cursor_factory=psycopg2.extras.DictCursor)

SELECT = "select something"
self.cur.execute(SELECT)

for row in self.cur:
 ...

self.cur.close()
self.con.close()

But when I click on exit button in application MS Visual C++ runtime
library error occurs: This application has requested the runtime to
terminate it in unusual way.
What am I doing wrong?

Responses

psycopg by date

Next:From: Jason EricksonDate: 2012-01-11 21:03:59
Subject: Re: after application close MS Visual C++ runtime library error occurs
Previous:From: Daniele VarrazzoDate: 2012-01-11 00:27:06
Subject: Re: large return resuls

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group