[freetds] Freepascal with FreeTDS/UnixODBC The saga continues

Scott Johnson scomps at purplewire.org
Fri Jul 23 16:35:53 EDT 2004


*This message was transferred with a trial version of CommuniGate(tm) Pro*
I interface with FreePascal via the 'odbcsql' unit that is included with
FreePascal.  It is intended to talk with unixODBC.  The strange thing was
that I got it all working properly on a test system (RH9) and then set it
all up over again, on a Debian system on the active network at my job.  Then
I started getting different failures.  On the debian system I had to use
that $LINKLIB directive, but on the RH9 system I didn't.  (I copied the
entire codebase for the test application from one machine to the other)

The 'program' I'm using is a slightly modified 'testodbc.pp' example that
came with freepascal.  The only modifications originally were to specify the
DSN, passwords etc.

I'll be glad to share what I have with anyone that's interested.  The
ODBCsql unit for FreePascal isn't documented very well.  It only has the
function definitions, structures, types and constants listed without any
explanation of how they're called or what the return values might be (other
than type)


--Scott
----- Original Message ----- 
From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio at vodafone.com>
To: "FreeTDS Development Group" <freetds at lists.ibiblio.org>
Sent: Friday, July 23, 2004 3:57 AM
Subject: RE: [freetds] Freepascal with FreeTDS/UnixODBC The saga continues


*This message was transferred with a trial version of CommuniGate(tm) Pro*
>
> *This message was transferred with a trial version of
> CommuniGate(tm) Pro*
> Once again, more exhaustive searching solved it.  In this case, the
> assertion was tripped by freepascal.
>
> It needed {$LINKLIB "c"} as the first line of the program code   (I'm
> posting this so future folks might find it in the archives)
>
> --Scott
>
> PS.  Sorry for all the mails
>

Don't mind for all mails. However I suspect some type of memory/heap
corruption somewhere. You are the first who it's trying FreeTDS with
FreePascal and the first that had these strange problems... Linux it's a
well tested platform and FreeTDS it's tested against some memory
debugger (I test sometimes with ElectricFence, someone else use
dmalloc). There are some places to look. For example how did you
interface FreePascal with unixODBC ?? There is a module for unixODBC ?

freddy77
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds




More information about the FreeTDS mailing list