X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 50B5FD1B8EA for ; Tue, 16 Mar 2004 10:23:34 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 93668-05 for ; Tue, 16 Mar 2004 06:23:34 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 533D4D1B8CE for ; Tue, 16 Mar 2004 06:23:32 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i2GANV1Y036414 for ; Tue, 16 Mar 2004 10:23:31 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i2G9u2rC056669 for pgsql-odbc@postgresql.org; Tue, 16 Mar 2004 09:56:02 GMT From: "Markus Donath" X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Re: odbc driver problem? or threading? or crecordset? Date: Tue, 16 Mar 2004 10:55:59 +0100 Organization: Hub.Org Networking Services Lines: 59 Message-ID: References: <014701c40af5$4d6c6070$643b1cac@Titanium> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/58 X-Sequence-Number: 3860 Hello, did you try the latest build ? http://www.geocities.jp/inocchichichi/psqlodbc/ bye, markus. ""Vincent Ladlad"" schrieb im Newsbeitrag news:014701c40af5$4d6c6070$643b1cac@Titanium... > 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 >