Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-05

SIGSEGV on PQConnection.ExecuteDirect

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

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?.

Reply by email

Leonardo M. Ramé
to Leonardo M. Ramé
Leonardo M. Ram? wrote 12 lines
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.

Reply by email

Mark Morgan Lloyd
to Leonardo M. Ramé
Leonardo M. Ram? wrote 15 lines
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]

Reply by email