Sign in Join

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

Mailing lists / fpc-pascal / 2012-10

For Dimitrios Chr. Ioannidis: no fpc 2.6.1 seg fault loading dblib

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Reinier Olislagers

Responding to
[fpc-devel] fpc 2.6.1 seg fault loading dblib

as I think the subject is more appropriate to the fpc list.... (and I haven't subscribed to fpc-devel):

when my app try to load the dblib dll i get a segmentation fault. Previously the app worked like a charm. The only change is the recompilation of fpc.

Works on Vista x64 with FPC with FPC fixes r22595 x86 and my pasql test program
(commit c250ca8)
https://bitbucket.org/reiniero/fpc_laz_patch_playground/src directory sql

x86 dlls downloaded from contrib site; md5s:
1e2159d07b938524a4a27661b7aead51 *dblib.dll
fd1dc6c680299a2ed1eedcc3eabda601 *libiconv2.dll

pasql.exe --type=SQLSERVER --hostname=127.0.0.1:1433 --database=master --trusted
...
Connection complete.
Server version:
Microsoft SQL Server 2008 (SP2) - 10.0.4064.0 (X64) Feb 25 2011 13:56:11
Copyright (c) 1988-2008 Microsoft Corporation
Express Edition with Advanced Services (64-bit) on Windows NT 6.0 <X64>
(Build 6002: Service Pack 2)

============================================================== Starting SQL console.
Enter your SQL; run it by writing
GO
or
COMMIT
or
COMMIT;
on a single line.
Enter EXIT and enter to quit. You can then save all your statements to file. SQL >select 'dblib x86 with fpc 2.6.1 trunk works for me'; SQL+ >go
==============================================================

============================================================== dblib x86 with fpc 2.6.1 trunk works for me

fpc -i
Free Pascal Compiler version 2.6.1

Compiler Date : 2012/10/13
Compiler CPU Target: i386

Also tested the compiled pasql.exe+dblib.dll+libiconv2.dll on Win XP SP3 against a remote MS SQL 2005 server. Success.

Perhaps you can run pasql against your server and see what happens?

Thanks,
Reinier

Dimitrios Chr. Ioannidis
to Reinier Olislagers
Show quoted text 19 lines
Responding to [fpc-devel] fpc 2.6.1 seg fault loading dblib as I think the subject is more appropriate to the fpc list.... (and I haven't subscribed to fpc-devel): > when my app try to load the dblib dll i get a segmentation fault. > Previously the app worked like a charm. The only change is the > recompilation of fpc. Works on Vista x64 with FPC with FPC fixes r22595 x86 and my pasql test program (commit c250ca8) https://bitbucket.org/reiniero/fpc_laz_patch_playground/src directory sql x86 dlls downloaded from contrib site; md5s: 1e2159d07b938524a4a27661b7aead51 *dblib.dll fd1dc6c680299a2ed1eedcc3eabda601 *libiconv2.dll

<snip>

Perhaps you can run pasql against your server and see what happens?

Ok, I'll do that today and get reply here.

Thx, for the response.

Dimitrios Chr. Ioannidis Nephelae - http://www.nephelae.eu
Dimitrios Chr. Ioannidis
to Dimitrios Chr. Ioannidis

Hi,

first your pasql worked like a charm. Second, now my app is working again.

I didn't find the reason why. The solution was to delete the lazarus lpi and lpr and recreate them. Wasn't fpc fault.

This was a first for me. That is a project written in a previous lazarus version to behave like this in a newer version. I frequently recompile ( 1 - 2 times a month ) fpc fixes_2_6 and lazarus fixes_1_0 and didn't had any problem earlier.

Anyway, thx for the help.

regards,

Dimitrios Chr. Ioannidis