Re: [fpc-pascal] Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-19 Thread Reinier Olislagers
On 19-4-2012 11:14, LacaK wrote: Reinier Olislagers wrote / napísal(a): On 18-4-2012 8:27, LacaK wrote: for stIndexes : CatalogName, SchemaName, TableName, IndexName, ConstraintName, IsPrimary, IsUnique, IsAscending (in list are included also PRIMARY KEYs and UNIQUE constraints) Got

[fpc-pascal] Re: RE : Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-19 Thread Reinier Olislagers
On 19-4-2012 14:13, Ludo Brands wrote: Thinking about column names I would suggest, change it according to SQL-Standard (information_schema views). To be fully compatible. (because ATM we are not compatible with SQL-Standard NOR Delphi) Advantage will be, that we will be able do for example

[fpc-pascal] Re: RE : RE : Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-19 Thread Reinier Olislagers
On 19-4-2012 15:02, Ludo Brands wrote: Ludo here I do not understand what do you want to say. may be, that my english is not so good ;-) Can you explain please what is your proposal regarding to stIndexes ? stIndexes is currently not implemented: keep it that way (or drop it) but add

Re: [fpc-pascal] Re: RE : RE : Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-19 Thread Reinier Olislagers
On 19-4-2012 15:37, michael.vancann...@wisa.be wrote: On Thu, 19 Apr 2012, Reinier Olislagers wrote: On 19-4-2012 15:02, Ludo Brands wrote: Ludo here I do not understand what do you want to say. may be, that my english is not so good ;-) Can you explain please what is your proposal

[fpc-pascal] Re: Compiling from and to memory

2012-04-21 Thread Reinier Olislagers
On 21-4-2012 2:22, waldo kitty wrote: i'm old school so please forgive this if is is out of bounds... but... how about a RAM disk? do the compiling on that and then copy off to physical media when completed? Hi Waldo, You're not the only one that's old school - it was already suggested earlier

Re: [fpc-pascal] Errors compiling fixes_2.6 on win64: forgot to include dblib for mssqlconn?

2012-04-23 Thread Reinier Olislagers
On 23-4-2012 10:48, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: It is hard because 2.6.x uses a different makefile system compared to trunk, which is harder to tune for specific OSes. Arrrgh. I think dblib is compiled even, but the packages/Makefile.fpc

[fpc-pascal] SQLDB: logging all generated SQL?

2012-04-26 Thread Reinier Olislagers
Good morning list, I vaguely remember somebody mentioning SQLDB has the option of dumping to a log all the SQL it sends to the database (in other words: logging all SQL sent to the database). Can somebody tell me if that functionality is there and where to find it? Perhaps something to do with

[fpc-pascal] Re: SQLDB: logging all generated SQL?

2012-04-26 Thread Reinier Olislagers
On 26-4-2012 10:58, LacaK wrote: Can somebody tell me if that functionality is there and where to find it? Perhaps something to do with TSQLConnection.LogEvents? Look into sqldb.pp at TSQLConnection property OnLog or at global variable GlobalDBLogHook. You can register procedure, which

[fpc-pascal] Re: RE : SQLDB: logging all generated SQL?

2012-04-26 Thread Reinier Olislagers
On 26-4-2012 11:27, Ludo Brands wrote: I vaguely remember somebody mentioning SQLDB has the option of dumping to a log all the SQL it sends to the database (in other words: logging all SQL sent to the database). Can somebody tell me if that functionality is there and where to find

[fpc-pascal] Re: SQLDB: logging all generated SQL?

2012-04-27 Thread Reinier Olislagers
On 26-4-2012 10:58, LacaK wrote: Can somebody tell me if that functionality is there and where to find it? Perhaps something to do with TSQLConnection.LogEvents? Look into sqldb.pp at TSQLConnection property OnLog or at global variable GlobalDBLogHook. You can register procedure,

[fpc-pascal] Re: heaptrc question

2012-04-27 Thread Reinier Olislagers
On 27-4-2012 18:47, Carver Carver wrote: thanks for the reply, but it doesn't really explain why this error is suddenly occurring. I am working on a layout manager to control pages within a form. when the first page is added to the first manager no problem. a second page to the first manager

[fpc-pascal] Re: making FPC more code optimized

2012-04-29 Thread Reinier Olislagers
On 29-4-2012 11:40, ik wrote: Hello, Here is something that I'm asking without really know anything about the subject, so please bear with me. I'ved asked few places that works with Pascal (Delphi and FPC), why does they use C as the infrastructure, and they all say that there is not

[fpc-pascal] Error in my mind or typo in sqldbtoolsunit.pas?

2012-04-29 Thread Reinier Olislagers
-dependent can be set in that file. See 'database.ini.txt' for an example. I hope this is enough information to get you started, Joost van der Sluis (30-12-2006), amended by Reinier Olislagers (April 2012) ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] Errors compiling FPC trunk r21192 x86 windows existential questions

2012-05-02 Thread Reinier Olislagers
Hi List, Seem to be having some problems compiling FPC trunk r21192 x86 windows (see below). However, x64 build does work. Is this a known problem? Should I keep pestering the list with these kinds of mails (I can put them up in the bugtracker or just wait and be patient as well ;) What's the

[fpc-pascal] Re: Errors compiling FPC trunk r21192 x86 windows existential questions

2012-05-02 Thread Reinier Olislagers
On 2-5-2012 18:26, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: Seem to be having some problems compiling FPC trunk r21192 x86 windows (see below). However, x64 build does work. Is this a known problem? Should I keep pestering the list with these kinds

[fpc-pascal] Re: Unicodestrings and Assign(File)

2012-05-12 Thread Reinier Olislagers
On 13-5-2012 5:59, dmitry boyarintsev wrote: I'm assuming that everyone is aware of the solution for this. Every unicode file name still has ANSI-dos name (aka ShortName). You could write a function that would return a short name based on unicode name of a file. And pass the short name to

Re: [fpc-pascal] Proposed FPC database example code: request for testing

2012-05-25 Thread Reinier Olislagers
On 25-5-2012 10:36, Michael Van Canneyt wrote: Thanks for the quick and helpful response, Michael. Interesting example. You forgot the readme in the zip ? I added it to the bottom of the post instead ;) I'm willing to include it as an example in fcl-db, but then you'd need to make some

[fpc-pascal] Endiannes programmer's manual - missing compiler define?

2012-06-05 Thread Reinier Olislagers
Had a look at the Programmer's Manual (April 2011, doc version 2.4) appendix G (compiler defines) Saw ENDIAN_LITTLE ENDIAN_BIG Did not see FPC_LITTLE_ENDIAN FPC_BIG_ENDIAN Should that be added? Also, I'm sure there must be functions to convert endianness - at least network byte order (big

Re: [fpc-pascal] Endiannes programmer's manual - missing compiler define?

2012-06-05 Thread Reinier Olislagers
On 5-6-2012 10:20, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: Also, I'm sure there must be functions to convert endianness - at least network byte order (big endian) to host order. snip Are there an equivalent RTL/FCL functions? Yes, but don't use them

[fpc-pascal] Re: Playing sounds with standard components

2012-06-12 Thread Reinier Olislagers
On 9-6-2012 23:18, Jorge Aldo G. de F. Junior wrote: You can use OpenAL or SDL... Found a framework that apparently uses SDL. Says it plays OGG and WAV. Haven't tried it.. https://github.com/freezedev/elysion Regards, Reinier ___ fpc-pascal maillist

[fpc-pascal] Automatically exporting C++ API using SWIG??

2012-06-19 Thread Reinier Olislagers
The recent thread about using C headers made me think about using C++ projects. Found that the SWIG tool converts C/C++ .h files into glue code and bindings for e.g. Python, Modula 3... but not Delphi/Object Pascal. It seems you get an object-oriented binding. Did see this post from 2010 about

[fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-20 Thread Reinier Olislagers
Morning list, I'm trying to convert a large number of seconds to a TTime. To my surprise - without a Delphi background ;) - EncodeTime only takes up to 59 seconds... ;) Same for EncodeTimeInterval So I ended up with something like: IncSecond(EncodeTime(0,0,0,0), HugeNumberOfSecondsInteger);

Re: [fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-20 Thread Reinier Olislagers
On 20-6-2012 11:53, dhkblas...@zeelandnet.nl wrote: Try MyTTime := HugeNumberOfSecondsInteger / (3600 * 24); Bedankt, Darius. That's indeed shorter and fairly clear... but the advantage of the other way is that I don't need to remember what units TTime uses internally... ;) Regards,

Re: [fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-21 Thread Reinier Olislagers
On 20-6-2012 19:59, Sven Barth wrote: Am 20.06.2012 12:16, schrieb Reinier Olislagers: On 20-6-2012 11:53, dhkblas...@zeelandnet.nl wrote: MyTTime := HugeNumberOfSecondsInteger / (3600 * 24); Bedankt, Darius. That's indeed shorter and fairly clear... but the advantage of the other way

[fpc-pascal] Win64 SEH patch fixes some Firebird embedded bugs

2012-06-21 Thread Reinier Olislagers
Just compiled FPC with -dTEST_WIN64_SEH and noticed that fixes bugs 17360 Firebird database exceptions don't generate EIBDatabaseError but a general exception on 64 bit windows 21581: Firebird embedded x64 Windows: CreateDB fails with an exception It may well also remove the need for the nasty

[fpc-pascal] OAuthv1/Twitter library/application ready; was: EncodeURLElement, underscore and RFC3986?

2012-06-21 Thread Reinier Olislagers
(Cross-posted to Synapse and FPC mailing lists) On 11-6-2012 16:38, Lukas Gebauer wrote: BTW: OAuth library will be interesting, feel free to inform here about it. I've finished a basic Twitter application and OAuth v1 library under an MIT license (happy to relicense under the Synapse

Re: [fpc-pascal] Win64 SEH patch fixes some Firebird embedded bugs

2012-06-22 Thread Reinier Olislagers
On 21-6-2012 11:39, michael.vancann...@wisa.be wrote: On Thu, 21 Jun 2012, Reinier Olislagers wrote: Thought I'd let everybody know in case they run into Firebird x64 (embedded) problems on Windows and to indicate that implementing the SEH patch might be a good idea... Well, I was going

[fpc-pascal] UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Reinier Olislagers
(Cross-posted to Lazarus and FPC lists) On the Lazarus list, On 24-6-2012 10:17, Felipe Monteiro de Carvalho wrote: Hello, I am using xmlread and dom from FPC to read a XML file and I got an unpleasant surprise. It is converting things like this: mo#x00B1;!-- PlusMinus; --/mo Into:

[fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Reinier Olislagers
On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: Em 24/6/2012 07:58, Reinier Olislagers escreveu: Related: With the help of Ludo Brands - as usual ;) - I've converted the FPC fpjson library to return UTF8 data. I use it for my twitter/Oauthv1 library/program; you can find

[fpc-pascal] Re: encryption and decryption

2012-06-24 Thread Reinier Olislagers
On 24-6-2012 17:30, Rainer Stratmann wrote: Am Sunday 24 June 2012 16:59:36 schrieb leledumbo: key := 'testkey'; value := 'this is a string'; How is it working? By xoring 'testkey' with 'this is a string' byte by byte? I hope not. http://en.wikipedia.org/wiki/Blowfish_%28cipher%29

Re: [fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Reinier Olislagers
On 24-6-2012 20:38, Mattias Gaertner wrote: On Sun, 24 Jun 2012 15:14:36 -0300 Luiz Americo Pereira Camara luiz...@oi.com.br wrote: Em 24/6/2012 12:22, Reinier Olislagers escreveu: On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: // Takes care of conversion... S:=WideChar(StrToInt

[fpc-pascal] Re: Unhandled exception from library crashes host exe

2012-06-27 Thread Reinier Olislagers
On 27-6-2012 16:22, Antonio Fortuny wrote: Le 27/06/2012 16:14, OBones a écrit : Hello, Regular exceptions, those raised with the raise keyword are always trapped by try..except blocks but you have to make sure that EVERY method in the DLL that is called by the host exe has such a

[fpc-pascal] Re: Should FCL documentation be splitted?

2012-07-06 Thread Reinier Olislagers
On 6-7-2012 1:16, leledumbo wrote: I would like to document some of the FCL, ... if that work includes the zip functionality in the paszlib unit, I'm still (slowly) working on it at https://bitbucket.org/reiniero/fpc_laz_patch_playground/src directory docs Please feel free to use it ;) If not,

[fpc-pascal] Re: Should FCL documentation be splitted?

2012-07-06 Thread Reinier Olislagers
On 6-7-2012 13:40, leledumbo wrote: No, I only want to (and am capable to) document FCL :p Mmm yes, I thought paszlib was part of the FCL ;) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Win64 SEH patch fixes some Firebird embedded bugs

2012-07-08 Thread Reinier Olislagers
On 21-6-2012 11:39, michael.vancann...@wisa.be wrote: On Thu, 21 Jun 2012, Reinier Olislagers wrote: Just compiled FPC with -dTEST_WIN64_SEH and noticed that fixes bugs 17360 Firebird database exceptions don't generate EIBDatabaseError but a general exception on 64 bit windows 21581

[fpc-pascal] Re: Win64 SEH patch fixes some Firebird embedded bugs

2012-07-09 Thread Reinier Olislagers
On 9-7-2012 9:44, Michael Van Canneyt wrote: On Mon, 9 Jul 2012, Reinier Olislagers wrote: On 21-6-2012 11:39, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Thu, 21 Jun 2012, Reinier Olislagers wrote: Thought I'd let everybody know in case they run into Firebird x64 (embedded

Re: [fpc-pascal] Re: Win64 SEH patch fixes some Firebird embedded bugs

2012-07-09 Thread Reinier Olislagers
On 9-7-2012 10:07, Michael Van Canneyt wrote: On Mon, 9 Jul 2012, Reinier Olislagers wrote: Patience. These things take time. I've set the weels in motion. Michael. Thanks. I noticed some things do take time.. the thing is that without any feedback is hard to guess whether something

Re: [fpc-pascal] Re: Win64 SEH patch fixes some Firebird embedded bugs

2012-07-09 Thread Reinier Olislagers
On 9-7-2012 14:22, Michael Van Canneyt wrote: It turns out there are reasons not to enable it by default just yet: Major issue 1: ld randomly crashes while linking any executable with .pdata section. When it crashes, Windows pops up the WER dialog, meaning that the entire testsuite will

[fpc-pascal] Re: RE : RE : RE : JSON and UTF8

2012-07-10 Thread Reinier Olislagers
On 10-7-2012 11:11, Michael Van Canneyt wrote: I reversed the argument default value to True. UTF8 is now the default. I'm very happy with this, thanks Michael! Regards, Reinier (looking forward to dumping my private copy of FPJSON) ___ fpc-pascal

[fpc-pascal] Re: RE : JSON and UTF8

2012-07-10 Thread Reinier Olislagers
On 11-7-2012 4:19, waldo kitty wrote: On 7/10/2012 07:00, Luiz Americo Pereira Camara wrote: With the old behavior, in an system with a system code page UTF8, if i try to show the parsed value of \u4E01 in e.g. a LCL app will get garbage. I would expect to work correctly in any enviroment

Re: [fpc-pascal] Re: RE : JSON and UTF8

2012-07-12 Thread Reinier Olislagers
On 11-7-2012 22:22, waldo kitty wrote: On 7/11/2012 01:36, Reinier Olislagers wrote: On 11-7-2012 4:19, waldo kitty wrote: On 7/10/2012 07:00, Luiz Americo Pereira Camara wrote: With the old behavior, in an system with a system code page UTF8, if i try to show the parsed value of \u4E01

[fpc-pascal] Re: How to write text to the console?

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 9:38, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Mon, 16 Jul 2012, Reinier Olislagers wrote: This works in FPC 2.7.1: WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),@s[1],length(s),bw,nil); ... but seems to be Windows-only. Indeed. What am I missing and what

Re: [fpc-pascal] How to write text to the console?

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 9:38, michael.vancann...@wisa.be wrote: On Mon, 16 Jul 2012, Reinier Olislagers wrote: After having had help on the list I managed to write UTF8 text to the Windows Vista console using 2.6 However, my test program (see attachment) fails on trunk. snip This works in FPC 2.7.1

[fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 13:26, Graeme Geldenhuys wrote: On 16 July 2012 12:16, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: I don't think Firebird works on Solaris or SPARC cpus, so it makes no sense to compile in firebird support on that platform. Wrong! From the Firebird website:

[fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 15:15, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On a side note: My quoted paragraph doesn't mention FreeBSD, but I have successfully ran Firebird Server

[fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 15:58, Reinier Olislagers wrote: On 16-7-2012 15:15, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On a side note: My quoted paragraph doesn't mention FreeBSD, but I

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 18:41, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: Whoopsie, error in the patch: this: - merged P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes); P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes); into P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-17 Thread Reinier Olislagers
On 17-7-2012 22:20, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Sven Barth wrote: Now, you are getting a SIGSEGV, not a SIGBUS which is what you would get for an alignment problem. This problem no longer exists in 2.7.1 (21919 + Reinier's solarisdbtrunk2.diff). Then it might be

[fpc-pascal] Cross-compiling Win64=Win32 fails

2012-07-20 Thread Reinier Olislagers
Hi list, I've been extending fpcup, trying to add Win64=Win32 cross compiler ... see latest revision on https://bitbucket.org/reiniero/fpcup/changesets With FPC trunk, I get this error: fpcdefs.inc(216,2) Error: User defined: Cross-compiling from systems without support for an 80 bit extended

Re: [fpc-pascal] Cross-compiling Win64=Win32 fails

2012-07-20 Thread Reinier Olislagers
On 20-7-2012 13:11, Jonas Maebe wrote: On 20 Jul 2012, at 12:20, Reinier Olislagers wrote: I've been extending fpcup, trying to add Win64=Win32 cross compiler ... see latest revision on https://bitbucket.org/reiniero/fpcup/changesets With FPC trunk, I get this error: fpcdefs.inc(216,2

[fpc-pascal] Re: [OT] GPL Lisence help

2012-07-28 Thread Reinier Olislagers
On 28-7-2012 1:03, Daniel Gaspary wrote: On Fri, Jul 27, 2012 at 5:39 PM, Dimitrios Chr. Ioannidis d.ioannidis-ks0maz7u1ijsq35pwsn...@public.gmane.org wrote: Hi all, first let me express my apologies for the off topic question. I'm having trouble to choose the correct gpl lisence for a

[fpc-pascal] fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-12 Thread Reinier Olislagers
In my (Windows) SVN fpc installs, I can find the fpdoc executable both under the bin directory as well as utils\fpdoc However, I've only found fpdoc.css in utils\fpdoc (and a different one in packages\fcl-res\xml) but not in the bin directory. IIRC, fpdoc picks up fpdoc.css when generating

[fpc-pascal] FPC trunk seems to crash compiling Lazreport; was: Re: [Lazarus] Lazreport compilation problems with FPC trunk

2012-08-12 Thread Reinier Olislagers
Thread from Lazarus list... Perhaps some kind FPC dev could look at bug 2252 if this is an FPC trunk bug connected with generating stabs debug info instead of a Lazreport/Lazarus bug7 Thanks, Reinier On 12-8-2012 18:50, Maxim Ganetsky wrote: 12.08.2012 20:12, Reinier Olislagers пишет: On 12-8

Re: RE : [fpc-pascal] FPC trunk seems to crash compiling Lazreport; was: Re: [Lazarus] Lazreport compilation problems with FPC trunk

2012-08-12 Thread Reinier Olislagers
On 12-8-2012 20:23, Jonas Maebe wrote: On 12 Aug 2012, at 20:14, Ludo Brands wrote: I would suggest to start by not compiling the compiler or RTL with stack checking enabled. Is stack checking on by default? No, it's not. I encounter the same problem as Reinier and I build the

[fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Reinier Olislagers
On 12-8-2012 10:35, Reinier Olislagers wrote: In my (Windows) SVN fpc installs, I can find the fpdoc executable both under the bin directory as well as utils\fpdoc However, I've only found fpdoc.css in utils\fpdoc (and a different one in packages\fcl-res\xml) but not in the bin directory

Re: [fpc-pascal] Makeskel generation question

2012-08-14 Thread Reinier Olislagers
On 18-11-2011 13:14, Michael Van Canneyt wrote: On Fri, 18 Nov 2011, Reinier Olislagers wrote: I've run makeskel on ibconnection.pp. This declaration: protected ... function GetHandle : pointer; override; gets output as: !-- function Visibility: protected -- element name

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Reinier Olislagers
On 14-8-2012 10:31, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 9:46, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 12-8-2012 10:35, Reinier Olislagers wrote: In my (Windows) SVN fpc installs, I can find

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Reinier Olislagers
On 14-8-2012 10:43, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 10:31, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 9:46, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Reinier Olislagers
On 14-8-2012 11:06, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 10:43, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 10:31, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Reinier Olislagers
On 14-8-2012 11:34, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: in packages\fcl-res\xml) but not in the bin directory. IIRC, fpdoc picks up fpdoc.css when generating HTML/CHM output. Shouldn't fpdoc.css be also present under the bin directory then? Thanks

[fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Reinier Olislagers
On 14-8-2012 13:50, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 11:34, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: in packages\fcl-res\xml) but not in the bin directory. IIRC, fpdoc

[fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Reinier Olislagers
On 14-8-2012 14:40, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 13:50, michael.vancanneyt-0is9kj9sb0a-xmd5yjdbdmrexy1tmh2...@public.gmane.org wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 11:34, Marco

[fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Reinier Olislagers
On 14-8-2012 16:03, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Tue, 14 Aug 2012, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: [ Charset UTF-8 unsupported, converting... ] michael.vancanneyt wrote on Tue, 14 Aug 2012: There is no discussion that

[fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread Reinier Olislagers
On 14-8-2012 16:03, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: Thinking about it, I will change fpdoc so it does not need the file installed, but generates it if not present, as Graeme suggested. That will be far easier, and causes less headaches and discussion. If/when you are

[fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-15 Thread Reinier Olislagers
On 14-8-2012 20:50, Michael Van Canneyt wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 16:03, michael.vancanneyt-0is9kj9sb0a-xmd5yjdbdmrexy1tmh2...@public.gmane.org wrote: Thinking about it, I will change fpdoc so it does not need the file installed, but generates

[fpc-pascal] Don't understand Zipper.DoEndOfFile/UnZipper.DoEndOfFile

2012-08-15 Thread Reinier Olislagers
I've been working on documenting the Zipper/Unzipper classes: packages\paszlib\src\zipper.pp Now looking at the protected procedure TZipper/TUnzipper.DoEndOfFile They apparently update compression percentage statistics and call a user defined callback (if any, defined in OnEndOfFile) I don't

Re: [fpc-pascal] Don't understand Zipper.DoEndOfFile/UnZipper.DoEndOfFile

2012-08-15 Thread Reinier Olislagers
On 15-8-2012 13:48, Michael Van Canneyt wrote: On Wed, 15 Aug 2012, Reinier Olislagers wrote: I've been working on documenting the Zipper/Unzipper classes: packages\paszlib\src\zipper.pp Now looking at the protected procedure TZipper/TUnzipper.DoEndOfFile They apparently update compression

[fpc-pascal] Re: linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-15 Thread Reinier Olislagers
On 15-8-2012 13:49, Jonas Maebe wrote: On 15 Aug 2012, at 13:32, Graeme Geldenhuys wrote: On 15 August 2012 12:10, Jonas Maebe jonas.maebe-3rqwkoel1alvsukgzv2...@public.gmane.org wrote: The official way to get the unversioned symbolic links is to install the -dev or -devel package for

[fpc-pascal] Re: linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-15 Thread Reinier Olislagers
On 15-8-2012 15:59, Graeme Geldenhuys wrote: Hi, On 15 August 2012 14:39, Jonas Maebe jonas.maebe-3rqwkoel1alvsukgzv2...@public.gmane.org wrote: FCL-DB uses dynamic linking by default, and looks for the unversioned shared library. So what specific Firebird version is the FCL-DB coded too?

Re: [fpc-pascal] Re: linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-15 Thread Reinier Olislagers
On 15-8-2012 16:19, Michael Van Canneyt wrote: On Wed, 15 Aug 2012, Reinier Olislagers wrote: On 15-8-2012 15:59, Graeme Geldenhuys wrote: Umm, so ideally the ibconnection.pp unit should really be split into various units with version numbers in their names. That way we will know to which

Re: [fpc-pascal] Don't understand Zipper.DoEndOfFile/UnZipper.DoEndOfFile

2012-08-15 Thread Reinier Olislagers
On 15-8-2012 14:24, Michael Van Canneyt wrote: On Wed, 15 Aug 2012, Reinier Olislagers wrote: On 15-8-2012 13:48, Michael Van Canneyt wrote: On Wed, 15 Aug 2012, Reinier Olislagers wrote: I've been working on documenting the Zipper/Unzipper classes: packages\paszlib\src\zipper.pp Now

[fpc-pascal] Re: linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-16 Thread Reinier Olislagers
On 16-8-2012 5:31, Marco van de Voort wrote: It's not a FPC problem, it is a linux problem that apps are not crossdistribution distributable. Creating a lot of drama if you see a minor discrepancy here 6 months after release won't benefit anyone. Just like we had a similar drama discussions

[fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Reinier Olislagers
On 16-8-2012 10:57, Rainer Stratmann wrote: Am Thursday 16 August 2012 10:16:04 schrieb Lukasz Sokol: On 15/08/2012 16:05, Rainer Stratmann wrote: Am Wednesday 15 August 2012 16:45:03 schrieb Lukasz Sokol: If the maintainers decide to build in the suggested function above then everthing is

[fpc-pascal] Re: linux: shouldwehard-codeversionedorunversionedshared libraries in our apps?

2012-08-16 Thread Reinier Olislagers
On 16-8-2012 23:05, Graeme Geldenhuys wrote: On 16 August 2012 18:41, Michael Van Canneyt michael-y8GAwIkqPAJpn7uciFS/b...@public.gmane.org wrote: Potential trouble ? After we have been loading it for the past 10 years ? Let's not get carried away... I simply meant Firebird DB v3 has been

[fpc-pascal] Re: linux: shouldwehard-codeversionedorunversionedshared libraries in our apps?

2012-08-16 Thread Reinier Olislagers
On 16-8-2012 23:41, Graeme Geldenhuys wrote: Hi Reinier, On 16 August 2012 22:25, Reinier Olislagers reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org wrote: Presumably the sqldb would be changed for the v3 library then? Yes, but that will only be in Trunk, and could take up

[fpc-pascal] Re: Interbase vs Firebird header translation

2012-08-17 Thread Reinier Olislagers
On 17-8-2012 11:47, Graeme Geldenhuys wrote: I started a new message thread, as it doesn't really relate to the origin thread any more. On 17/08/12 06:50, LacaK wrote: BTW: packages/ibase is intended to be translation of Firebird client API not Interbase, right ? AFAIK, it's intended to

[fpc-pascal] Re: DOSbox issues

2012-08-20 Thread Reinier Olislagers
On 19-8-2012 22:07, Guillermo Martínez Jiménez wrote: Hello everybody, Has somebody used Free Pascal 2.6 in DOSbox? I'm having problems with the installer (text looks corrupted and it doesn't install) but I don't know if it's an issue in all DOSbox or it's because I'm using it in a 64bit

[fpc-pascal] Re: Searching for files all over the disk

2012-08-20 Thread Reinier Olislagers
On 20-8-2012 16:47, Jürgen Hestermann wrote: Am 2012-08-20 16:28, schrieb Mattias Gaertner: Apparently it is a bad idea to scan a root directory. See http://bugs.freepascal.org/view.php?id=22630 Well, it is a bad idea to wildly scan directory branches just in case at all. That's fooling

[fpc-pascal] FPC unit testing generation program

2012-08-22 Thread Reinier Olislagers
Just saw this commit fly by: r22165 | michael | 2012-08-21 21:43:26 +0200 (di, 21 aug 2012) | 1 line * pas2ut, initial version (create unit tests from pascal unit) That looks very interesting! Thanks for this, I'll look into it. Regards, Reinier ___

[fpc-pascal] Re: Unit testing aid...

2012-08-23 Thread Reinier Olislagers
On 23-8-2012 9:36, Sven Barth wrote: Am 22.08.2012 21:56, schrieb Martin: make.exe[3]: Entering directory `C:/FPC/SVN/trunc/utils/pas2ut' C:/FPC/SVN/trunk_build/gmkdir.exe -p units/i386-win32 C:/FPC/SVN/trunc/compiler/ppc386.exe -XX -CX -Ur -Xs -O2 -n -O2 -S2h

[fpc-pascal] Any FPC/Lazarus success stories on Nokia N9?

2012-08-25 Thread Reinier Olislagers
Hi FPC Lazarus lists (crossposted), Just wondering if anybody has compiled FPC, Lazarus, or fpgui applications on Nokia's N9 smartphone. Presumably the N900 instructions on http://wiki.lazarus.freepascal.org/Smartphone_Development could apply with some tweaks The reason... well, I think you

[fpc-pascal] Re: Editing resource of executable

2012-08-30 Thread Reinier Olislagers
On 30-8-2012 10:07, Mark Morgan Lloyd wrote: Krzysztof wrote: everything is in one file (and must be). My question is, exists any commandline tool which can edit executable file for edit some resource (like ResEdit or Restorator for Windows) which can be used by http server? Let's see if

[fpc-pascal] Re: Identifier not found result

2012-08-30 Thread Reinier Olislagers
On 30-8-2012 15:08, Rainer Stratmann wrote: Am Thursday 30 August 2012 14:39:06 schrieb leledumbo: Since this behavior is documented, one should read the documentation first: http://www.freepascal.org/docs-html/ref/refse76.html There is much documentation spread over many servers. I don't

Re: [fpc-pascal] Re: Identifier not found result

2012-08-30 Thread Reinier Olislagers
On 30-8-2012 15:49, Rainer Stratmann wrote: Am Thursday 30 August 2012 15:33:36 schrieb Reinier Olislagers: On 30-8-2012 15:08, Rainer Stratmann wrote: Am Thursday 30 August 2012 14:39:06 schrieb leledumbo: Since this behavior is documented, one should read the documentation first: http

[fpc-pascal] Re: Editing resource of executable

2012-08-30 Thread Reinier Olislagers
On 30-8-2012 16:27, Jonas Maebe wrote: Krzysztof wrote on Thu, 30 Aug 2012: Hmm sounds good. So I can normally open another exec in for example TFileStream and write something at the end and this exec run without error? Yes. Do keep in mind that the original exe has to be able to find

[fpc-pascal] Re: Identifier not found result

2012-08-30 Thread Reinier Olislagers
On 30-8-2012 18:44, Rainer Stratmann wrote: Am Thursday 30 August 2012 18:28:41 schrieb Tomas Hajny: I do not say that it is wrong to be more helpful in error messages, but rather that your proposal tries to fix a very small fragment of something much more general and moreover that the

[fpc-pascal] Re: Editing resource of executable

2012-08-31 Thread Reinier Olislagers
of resource editor to allow editing of resources in a binary... it was posted in this area back in jan 2012... i don't know if this is what you are looking for but here's what i found... [QUOTE] Date: Mon, 30 Jan 2012 09:09:42 +0100 From: Reinier Olislagers reinierolislagers-re5jqeeqqe8avxtiumw

[fpc-pascal] Re: About Putting everything in one repo

2012-09-02 Thread Reinier Olislagers
On 2-9-2012 13:22, Zaher Dirkey wrote: On Sun, Sep 2, 2012 at 1:20 PM, Florian Klämpfl florian-y8GAwIkqPAJpn7uciFS/b...@public.gmane.org mailto:flor...@freepascal.org wrote: If somebody is interested to do so, he can do this. What does prevents someone technically (!) from releasing

[fpc-pascal] Re: About Putting everything in one repo

2012-09-02 Thread Reinier Olislagers
On 2-9-2012 13:30, Zaher Dirkey wrote: On Sun, Sep 2, 2012 at 2:25 PM, Reinier Olislagers reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org mailto:reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org wrote: Why don't you use FPC fixes (e.g. FPC 2.6.1) then, and help

[fpc-pascal] Re: About Putting everything in one repo

2012-09-02 Thread Reinier Olislagers
On 2-9-2012 14:10, Zaher Dirkey wrote: On Sun, Sep 2, 2012 at 2:55 PM, Reinier Olislagers reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org mailto:reinierolislagers-re5jqeeqqe8avxtiumw...@public.gmane.org wrote: It's a branch in the svn repository. And Lazarus builds based

[fpc-pascal] Re: Issue with deploying linux application in /opt directory

2012-09-04 Thread Reinier Olislagers
On 3-9-2012 20:17, Krzysztof wrote: Hi, I have script which install my application in /opt/myapp directory. This script check if user is root so it can set permissions to read and access as executable. Everything works fine. After installation I can run this application, but It doesn't has

[fpc-pascal] Dpcrypt: AES hardware support

2012-09-04 Thread Reinier Olislagers
Hi list, This patch: http://bugs.freepascal.org/view.php?id=18527 seems to imply AES hardware support is now included in FPC. Might be useful to extend dpcrypt for those interested on blazingly fast AES support ;) Regards, Reinier ___ fpc-pascal

Re: [fpc-pascal] Re: Issue with deploying linux application in /opt directory

2012-09-04 Thread Reinier Olislagers
On 4-9-2012 11:31, Bernd wrote: The owner of the file or the folder does not affect under which UID it will run. Agreed. They will always run with the UID of the user who started them (unless you set the suid bit which is considered evil and should not be neccessary in most normal

[fpc-pascal] Error compiling FPC trunk x64 Windows

2012-09-06 Thread Reinier Olislagers
I've been having errors compiling FPC trunk x64 on Windows with fpcup for a while now. Current output (rev 22336) C:/development/fpcbootstrap64/ppcx64.exe -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -FE. -FUC:/development/fpctrunk/rtl/units/x86_64-win64 -gw -gl -dx86_64 -dRELEASE -Us -Sg system.pp

Re: [fpc-pascal] Error compiling FPC trunk x64 Windows

2012-09-06 Thread Reinier Olislagers
On 6-9-2012 17:04, Florian Klämpfl wrote: Am 06.09.2012 14:59, schrieb Reinier Olislagers: I've been having errors compiling FPC trunk x64 on Windows with fpcup for a while now. snip Does anybody else see this? Only with a non 2.6.0 starting compiler :) E.g. an older 2.7.1 compiler using

Re: [fpc-pascal] Error compiling FPC trunk x64 Windows

2012-09-06 Thread Reinier Olislagers
On 6-9-2012 18:17, Florian Klämpfl wrote: Am 06.09.2012 18:09, schrieb Reinier Olislagers: On 6-9-2012 17:04, Florian Klämpfl wrote: Am 06.09.2012 14:59, schrieb Reinier Olislagers: Only with a non 2.6.0 starting compiler :) E.g. an older 2.7.1 compiler using a newer 2.7.1 rtl. Oops, you

[fpc-pascal] Firebird: bulk insert performance: suggestions?

2012-09-07 Thread Reinier Olislagers
For my Dutch postcode program https://bitbucket.org/reiniero/postcode with an embedded Firebird 2.5 database, I allow users to read in a CSV file with new or updated postcode data. I use sqldb, FPC x86. I'd like to get your suggestions on speed improvements. I try to get the data into a

[fpc-pascal] Re: Firebird: bulk insert performance: suggestions?

2012-09-07 Thread Reinier Olislagers
On 7-9-2012 13:12, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Fri, 7 Sep 2012, Reinier Olislagers wrote: then the transaction is started (if it is inactive) and the query parameters are filled (using Query.Params.ParamByName, but I don't suppose that would be a big slowdown

[fpc-pascal] Re: Firebird: bulk insert performance: suggestions?

2012-09-07 Thread Reinier Olislagers
On 7-9-2012 13:22, Ludo Brands wrote: For my Dutch postcode program https://bitbucket.org/reiniero/postcode with an embedded Firebird 2.5 database, I allow users to read in a CSV file with new or updated postcode data. I use sqldb, FPC x86. I'd like to get your suggestions on speed

Re: [fpc-pascal] Firebird: bulk insert performance: suggestions?

2012-09-08 Thread Reinier Olislagers
On 8-9-2012 11:04, patspiper wrote: On 07/09/12 14:03, Reinier Olislagers wrote: - Turning Forced Writes off while doing the bulk inserts may help (at a higher risk). But make sure you turn it back on afterwards. - If my memory serves well, the Firebird SP can directly read from the CSV

<    1   2   3   4   5   6   7   8   >