pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Lambert <paul.lambert@reynolds.com.au>
To: pgsql-odbc@postgresql.org
Subject: Re: Need help with Visual Basic 6 and PostgreSQL
Date: Thu, 22 Nov 2007 12:34:01 +0900
Message-ID: <4744F8A9.8040105@reynolds.com.au> (raw)
In-Reply-To: <4744EB49.6050305@AxiomInt.com>
References: <4744EB49.6050305@AxiomInt.com>

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



view thread (16+ messages)  latest in thread

Message-ID: <4744F8A9.8040105@reynolds.com.au>
Permalink:  ../4744F8A9.8040105@reynolds.com.au/
Also on:    postgresql.org/message-id/4744F8A9.8040105@reynolds.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: paul.lambert@reynolds.com.au
  Subject: Re: Need help with Visual Basic 6 and PostgreSQL
  In-Reply-To: <4744F8A9.8040105@reynolds.com.au>
  References: <4744EB49.6050305@AxiomInt.com> <4744F8A9.8040105@reynolds.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox