Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 2F6B92E0037 for ; Wed, 21 Nov 2007 23:36:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 23287-01 for ; Wed, 21 Nov 2007 23:36:26 -0400 (AST) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by postgresql.org (Postfix) with ESMTP id 7560C2E0033 for ; Wed, 21 Nov 2007 23:36:32 -0400 (AST) Received: from [127.0.0.1] (online4-new.lnk.telstra.net [139.130.169.227]) (authenticated sender plengada@optusnet.com.au) by mail07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id lAM3aQli001216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 22 Nov 2007 14:36:29 +1100 Message-ID: <4744F8A9.8040105@reynolds.com.au> Date: Thu, 22 Nov 2007 12:34:01 +0900 From: Paul Lambert User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Need help with Visual Basic 6 and PostgreSQL References: <4744EB49.6050305@AxiomInt.com> In-Reply-To: <4744EB49.6050305@AxiomInt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/25 X-Sequence-Number: 9240 Finn Lassen wrote: > I am very new to ADODB, ODBC and SQL databases. > > When I run the following which I wrote to populate tables (with data > from a Borland V database) , the Visual Basic Developer Interface > crashes with the following error signature (Windows XP): > AppName: vb6.exe AppVer: 6.0.97.82 ModName: psqlodbc30a.dll > ModVer: 8.2.4.0 Offset: 00016edc I had perhaps a similar issue with VB6 earlir this year - program crashing on doing a .Update, though mine was an access violation. Refer to the thread here: http://archives.postgresql.org/pgsql-odbc/2007-03/msg00045.php My solution in the end was to drop using recordsets and the addNew/Update methods to constructing an SQL INSERT/UPDATE/DELETE statement of my own and running that through .Execute on the database object instead. I'd suggest turning on logging on the ODBC driver, running your program until it crashes and then checking the contents of the mylog and psqlodbc log in your root c directory. They might give a hint as to what the problem is - perhaps some funny data being sent through. -- Paul Lambert Database Administrator AutoLedgers - A Reynolds & Reynolds Company