[Lazarus] SIGSEGV on PQConnection.ExecuteDirect
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Thu May 5 12:10:59 CEST 2011
Leonardo M. Ramé wrote:
> On 2011-05-04 10:06:15 -0300, Leonardo M. Ramé wrote:
>> Hi, I'm trying to compile an application I made in Linux, to a Windows
>> box, but I'm getting a SIGSEGV in this line:
>>
>> PQConnection1.ExecuteDirect('SET CLIENT_ENCODING TO ''UTF8''');
>>
>> Lazarus Version: 0.9.31 - SVN 30543
>> FPC: 2.4.3
>> LibPQ.dll: 8.2.6.8004
>>
>> In Linux I'm using FPC 2.5.1, while on Windows I use FPC 2.4.3. Does
>> anyone experienced this same problem?.
>>
>
> Nevermind, with FPC 2.5.1 works.
I'd throw in here that I'm on 2.4.2 + 0.9.30 ~30000 and using PQ without
obvious problems, although I'm not fiddling with encoding. The one thing
I've found is that you have to be fairly careful with what handle you're
sending commands to, i.e. the connection or the transaction object.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list