after applicatio​n close MS Visual C++ runtime library error occurs

Peter Irbizon peterirbizon at
Wed Jan 11 10:28:01 EST 2012

Hello, I am using psycopg2 in windows app, 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"

for row in self.cur:


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list