From: leonid.dulman@gmail.com
Subject: Re: porting a Gnat Ada program with ODBC code to Windows
Date: Sat, 28 Dec 2013 07:59:35 -0800 (PST)
Date: 2013-12-28T07:59:35-08:00 [thread overview]
Message-ID: <f5a1fac5-4a01-49a2-a020-1a2cc6649b67@googlegroups.com> (raw)
In-Reply-To: <8ae80e57-4c43-408b-9d99-79f879e85ee8@googlegroups.com>
On Friday, December 20, 2013 5:06:44 PM UTC+2, Graham Stark wrote:
> Hi,
>
> is anyone out there successfully running a Gnat Ada program on Windows which uses the ODBC database drivers?
>
>
>
> I've been asked to port this big program:
>
>
>
> https://github.com/grahamstark/wales_social_care
>
>
>
> to a Windows server but can't get the database connections to work at all, even on simple test programs.
>
>
>
> I'm using the original Gnade odbc interface; I *know* there are better alternatives but this was originally written 3 years ago when there weren't and I haven't got time to change it right now (though in retrospect I could probably have ported it in the time I've wasted so far).
>
>
>
> I'm developing on an all 32-bit Windows 7 VM, to avoid 32/64 bit mismatches as far as I can.
>
>
>
> I have Cygwin installed and have used it to build a clean version of UnixODBC. I've also tried the IODBC libraries that ship with Cygwin.
>
>
>
> I get ACCESS_VIOLATION exceptions every time any of the linked to ODBC functions gets called (SQLAllocHandle and so on).
>
>
>
> Has anyone got this to work. I just don't know my way around Cygwin and Windows and may well be doing something dumb,
>
>
>
> thanks (and happy Christmas)
>
>
>
> Graham
Qt5Ada supports ODBC, mySQL,OCI and SQLite database connections
http://users1.jabry.com/adastudio/index.html
prev parent reply other threads:[~2013-12-28 15:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-20 15:06 porting a Gnat Ada program with ODBC code to Windows Graham Stark
2013-12-20 16:46 ` Dmitry A. Kazakov
2013-12-28 15:59 ` leonid.dulman [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox