Skip site navigation (1) Skip section navigation (2)

Re: Application crash after error - please help

From: "Andrus" <eetasoft(at)online(dot)ee>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Application crash after error - please help
Date: 2005-12-02 16:51:26
Message-ID: dmpu4j$o13$ (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc

> Main.exe doesn't use auth info prom sqltest.prg.

I'm sorry. Modified repro code is available in same address
This repro contains text type column. Fox mysql it should probably be
replaced also. My co-worker tries to run it in mysql in weekend.

> I don't know if the problem is in ODBC driver. But to fix this problem
> imidiately in your app it's enough
> if you add Calling SQLFreeStmt with SQL_DROP in the code when insert
> fail.

Thank you. This would be a good fix. Unfortunately it it difficult to
implement in VFP.

I don't use ODBC direct calls in my code. In repro code I issue APPEND FROM


This causes VFP to generate ODBC calls automatically. I do'nt know is it
possible to add ODBC SQLFreeStmt direct call after high-level VFP APPEND
FROM command.

More generally: I create form, bind it to Postgres server data. Users edit
this form.
During editing process VFP generates ODBC calls automatically. Trying to
insert duplicate primary by end user or some other odbc error causes my appl
crash shortly after that. My code is not involved in this process.

Theoretically, I can determine odbc handle used by VFP and make direct ODBC
dll calls from my application. I can add my code to editing events to fix
However, I do'nt know the  places where to add SQLFreeStmt calls and i'm not
sure how to add such fixes in all situations which may occur during editing


In response to

pgsql-odbc by date

Next:From: Dave PageDate: 2005-12-02 17:00:21
Subject: Re: Application crash after error - please help
Previous:From: Dave PageDate: 2005-12-02 14:57:18
Subject: Re: Some changes

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group