logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

odbc driver problem? or threading? or crecordset?: msg#00050

db.postgresql.odbc

Subject: odbc driver problem? or threading? or crecordset?

hi there! im new to psqlodbc, and i hope you pros could help me out :)

i have been browsing the internet for more than
a week now, searching for clues regarding an
"access violation" error. i hope maybe you can
help me get over this problem, as it has been
eating my dev schedule.

here's the problem:
i have two threads triggered by onTimer which
is set to 1 second. when the timer expires,
the threads are notified, and a (select) query is started.
both threads use the same recordset class, but
different instance. thread1 accesses server1 using datasource1. thread2
accesses server2 using datasource2. both tables are the same on both
servers, but have different values. that is why they use the same
recordset.
after a few timerEvents, the program stops, and the
error message "access violation" is shown.
during debug, i traced that the error occurs when
both thread attempts to call the crecordset::open function.
at the same time. even though they access different
datasources, the problem keeps coming back. i only
issue a simple select statement with the following options --
(crecordset::snapshot, crecordset::readonly).

the recordset is open()ed and close()d after every query.
the cdatabase instance is not. it remains open.

is there something i missed?

thanks,
vincentl

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.605 / Virus Database: 385 - Release Date: 3/1/2004



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo