Re: [fpc-pascal] Trim(): incompatibility with Delphi

2012-03-07 Thread Graeme Geldenhuys
On 7 March 2012 11:20, Bart bartjunk64@* wrote: You're writing (code/docs) faster than I can think ;-) Yeah, I'm jealous about that too. Maybe he perfected his clones - mine went totally haywire after a while! :-) -- Regards,   - Graeme -

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-07 Thread Graeme Geldenhuys
On Wednesday, 7 March 2012, Zaher Dirkey parm...@gmail.com wrote: In accounting/financial systems there is Debit and Credit numbers it must equal and Debit - Credit = 0, with this bug it fail. I am an accountant and i know if there is 0.0001 diff in balance sheet, my boss will fire me :P This

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-07 Thread Graeme Geldenhuys
On 8 March 2012 03:28, Marcos Douglas wrote: Integer math... what did you mean? Over the years we have experience many problems with currency, floating point and date/time calculations and storage. So we tweaked our software to handle such data slightly different. If a user enters and amount

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-08 Thread Graeme Geldenhuys
On 8 March 2012 14:14, Marcos Douglas wrote: So, if you have two values to storage (amount of decimals is 4) e.g. 100.34524 and 2,000.2 you do: 100.34524 = 1003452 2,000.2 = 20002000 Correct. We then implemented our own function [eg: M2AmountToCurr() ] which formats such a number [only

[fpc-pascal] class of - instance created is wrong

2012-03-15 Thread Graeme Geldenhuys
Hi, I've used the Class Of language feature a lot in the past. eg: tiOPF uses it a lot, I use it to generate various reports in our company projects etc. So I tried to implement a lazy mans factory method in my project, so it can generate a class instance based on what the developer chooses. I

Re: [fpc-pascal] class of - instance created is wrong

2012-03-15 Thread Graeme Geldenhuys
On 15 March 2012 11:36, Mattias Gaertner wrote: Is the constructor virtual? I owe you a beer! :-) The original constructor in TfpgCanvasBase was virtual, but some descendant classes did a 'reintroduce' of the constructor which wasn't virtual. Looking at the code now, the reintroduce isn't

Re: [fpc-pascal] class of - instance created is wrong

2012-03-15 Thread Graeme Geldenhuys
On 15 March 2012 12:31, Leonardo M. Ramé wrote: Hi Graeme, this is completely off topic. Does AggPas works in 64bits Linux? I remember it didn't compile last year. I does now! ;-) I haven't publish my copy of AggPas yet (which contains the 64-bit fixes). I'll probably push those changes

Re: [fpc-pascal] class of - instance created is wrong

2012-03-18 Thread Graeme Geldenhuys
On 18 March 2012 08:03, Zaher Dirkey wrote: Would u push it to new repository (under ur account). I'm planning to publish it to the fpGUI repository today. And why there is many of AggPas, what happened to the original one? The original AggPas author only released AggPas as a zip / tarball

Re: [fpc-pascal] class of - instance created is wrong

2012-03-18 Thread Graeme Geldenhuys
On 18 March 2012 09:51, Zaher Dirkey wrote: But that mean you force us to use fpGUI :P No, the AggPas code is still kept in a separate folder. The only mixing between fpGUI AppPas is localised to a single unit, and that unit is not needed for any of AggPas specific code or demos. --

Re: [fpc-pascal] tiOPF: automapping for m-n relationships

2012-04-02 Thread Graeme Geldenhuys
On 2 April 2012 00:33, leledumbo leledumbo_cool@ wrote: they're mapped with: with gTIOPFManager.ClassDBMappingMgr do begin  RegisterMapping(TUser,'users','OID','id',[pktDB]);  RegisterMapping(TUser,'users','Name','name');  RegisterMapping(TUser,'users','Password','password');  

Re: [fpc-pascal] Re: tiOPF: automapping for m-n relationships

2012-04-02 Thread Graeme Geldenhuys
On 2 April 2012 15:37, leledumbo leledumbo_cool@*** wrote: Ouch, that's a bit bad to hear, I thought I could get something simpler. I'll try to implement that relationship manager pattern because I want to avoid direct sql. Yeah, Auto-Mapping hasn't received a lot of love in recent years. I

[fpc-pascal] ReadComponentRes() implementation and documentation

2012-04-11 Thread Graeme Geldenhuys
Hi, Two problems here: 1) The documentation is very sparse on this method, and the parameters and return type are not documented at all http://www.freepascal.org/docs-html/rtl/classes/readcomponentres.html 2) What's the point of including a delphi compatibility method if it isn't compatible

Re: [fpc-pascal] ObjectBinaryToText - how to write only selected property?

2012-05-07 Thread Graeme Geldenhuys
On 5 May 2012 18:15, Krzysztof dib...@wp.pl wrote: I could use RTTI and TypeInfo, but ObjectBinaryToText can parse property hierarchy (Propery1.Subproperty1.Color etc). Out of interest, I have written an extended RTTI unit which is used in the tiOPF project. All the functions in that unit

Re: [fpc-pascal] ObjectBinaryToText - how to write only selected property?

2012-05-08 Thread Graeme Geldenhuys
Hi, @Graeme. I tried download tiOPS source but can't extract archive on linux. I never had problems with compressed files on linux. Which format is this? I meant you should be able to simply check-out the tiRTTI.pas unit form the SubVersion source code repository, or browse the repository

Re: [fpc-pascal] fpGUI Toolkit v0.8 release for FPC 2.4.4 2.6.0-rc

2012-05-30 Thread Graeme Geldenhuys
On 25 May 2012 18:14, Paul Breneman paul2...@brenemanlabs.com wrote: I've recently added new releases for Linux and ARM Linux on this page:  http://www.turbocontrol.com/easyfpgui.htm Excellent stuff, thanks Paul. I am planning on getting an Android based smart phone in the next few months. I

Re: [fpc-pascal] fpimage blur

2012-05-31 Thread Graeme Geldenhuys
On 31 May 2012 09:06, Mattias Gaertner nc-gaert...@netcologne.de wrote: Hi, Is there a function to blur an entire fpimage or a rectangular area? Not a direct function of Tfpimage, but is very easily accomplished using fpcanvas and the various Interpolation methods. -- Regards,   - Graeme

Re: [fpc-pascal] fpimage blur

2012-05-31 Thread Graeme Geldenhuys
On 31 May 2012 12:35, Mattias Gaertner nc-gaert...@netcologne.de wrote: Can you give an example or some pseudocode? I just moved country, so don't have access to my development pc yet (still in shipping), so can't get hold of a working code example. So best I can do is code example from

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

2012-06-09 Thread Graeme Geldenhuys
Our company uses SDL with good results in our cross-platform projects. -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net ___ fpc-pascal maillist -

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

2012-06-12 Thread Graeme Geldenhuys
On 12 June 2012 09:49, michael.vancann...@wisa.be wrote: SDL is so easy, it's hardly necessary to create a wrapper. +1 And because SDL is a cross platform framework, there is nothing special to do in your code to get it to work on multiple platforms. -- Regards,   - Graeme -

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

2012-06-12 Thread Graeme Geldenhuys
On 12 June 2012 16:17, silvioprog silviop...@gmail.com wrote: So, how to play audio (wav/mp3) with only SDL framework in Free Pascal? Simply reading a SDL tutorial or two, will quickly let you understand the following code. TSoundEngine is just an convenience class we created to add extra

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

2012-06-13 Thread Graeme Geldenhuys
On 13 June 2012 04:26, silvioprog silviop...@gmail.com wrote: I tried playing a wav file with this demo in attached, no errors, but no sound came out. :( You are releasing the TSoundEngine instance to quickly, and don't give SDL chance to initialize fully and play the sound. Simply add a

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

2012-06-13 Thread Graeme Geldenhuys
On 13 June 2012 11:36, silvioprog silviop...@gmail.com wrote: With: {.$define UseMusic} I do not hear sound ... :/ I don't know what to say, other than It works here - with or without the UseMusic define. And as I mentioned, we have a project that uses SDL a lot, on Linux and Windows,

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

2012-06-14 Thread Graeme Geldenhuys
Hi, On 14 June 2012 02:19, silvioprog silviop...@gmail.com wrote: Y!! Worked fine with this demo in attached! Glad you got it working in the end. I found this demo in: ...and if you look carefully, my sample code called the exact same SDL API's in the

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

2012-06-21 Thread Graeme Geldenhuys
On Thursday, 21 June 2012, Marcos Douglas wrote: I can't clone the sources: $ git clone https://bitbucket.org/reiniero/fpctwit Cloning into fpctwit... fatal: https://bitbucket.org/reiniero/fpctwit/info/refs not found: did you run git update-server-info on the server? He did say he was

Re: [fpc-pascal] Small and not instalable web server for a local Pascal CGI application

2012-07-12 Thread Graeme Geldenhuys
On 12 July 2012 15:20, luciano de souza luchya...@gmail.com wrote: localhost, I would like indications about small, not instalable web servers, ideal for my simple and sharable Pascal CGIs! Does someone know something about this? Have a look an nYume. It is a small and easy, but fully

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

2012-07-16 Thread Graeme Geldenhuys
On 16 July 2012 12:16, michael.vancann...@wisa.be 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: Firebird 2.5 runs on Windows (32- and 64-bit), various Linux versions (32-

Re: [fpc-pascal] Dynamic messaging in Delphi

2012-07-26 Thread Graeme Geldenhuys
On 24 July 2012 15:13, Ryan Joseph r...@thealchemistguild.com wrote: procedure InvokeDelegate (delegate: TObject); var intfDelegate: IMyInterface; begin ERROR intfDelegate := IMyInterface(delegate); intfDelegate.DoThis(1); end; You could also try the

Re: [fpc-pascal] Compiling on Raspberry Pi

2012-08-07 Thread Graeme Geldenhuys
Hi, On 7 August 2012 11:54, Koenraad Lelong fpas...@brouwerij.homelinux.net wrote: The rest of the apps compile fine although I had no possibility to test them since I don't yet have a suitable video-cable. I had to delay my Raspberry Pi order until I moved to the UK. I can't wait to receive

Re: [fpc-pascal] How to find a graphic element in the form editor?

2012-08-07 Thread Graeme Geldenhuys
On 7 August 2012 13:20, Howard Page-Clark h...@talktalk.net wrote: Use View | Components (shortcut Ctrl Alt P), and type 'filen' in the filter edit. Wow, and so we learn something new. :-) -- Regards, - Graeme - ___ fpGUI - a cross-platform

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

2012-08-14 Thread Graeme Geldenhuys
On 14 August 2012 09:37, Reinier Olislagers reinierolislag...@gmail.com wrote: Very well, how many people do you think use fpdoc *and* customize fpdoc.css? Even then, copying fpdoc.css to the bin directory would give a sensible default, no? I fully agree. I know you are allowed to customise

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

2012-08-14 Thread Graeme Geldenhuys
On 14 August 2012 09:43, michael.vancann...@wisa.be wrote: That we should distribute the file somewhere is something I agree on, but I do not think it should be in the bin directory; it's not a binary, after all. +1 Isn't the fpdoc.css auto generated by the fpdoc executable? For some

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

2012-08-14 Thread Graeme Geldenhuys
Hi On 14 August 2012 09:54, Reinier Olislagers reinierolislag...@gmail.com wrote: Neither are fp.ans fpc.cfg yylex.cod program.pt cvsup.tdf ... but they still live in my fpc bin directory... :-) Good point. -- Regards, - Graeme - ___

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

2012-08-15 Thread Graeme Geldenhuys
Hi, This issue has come up before in a fcl-db discussion regarding the Firebird Database, where the libfbclient.so was missing from many Linux distros (eg: Ubuntu 10.04), but a libfbclient.so.2.0 was available instead. FCL-DB only checks for the unversioned shared libraries, thus your application

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

2012-08-15 Thread Graeme Geldenhuys
Hi, On 15 August 2012 12:10, Jonas Maebe jonas.ma...@elis.ugent.be wrote: The official way to get the unversioned symbolic links is to install the -dev or -devel package for that library. Of course, you're not supposed to require end-users to do that. Yes, I know that bit, but even as a

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

2012-08-15 Thread Graeme Geldenhuys
Hi, On 15 August 2012 12:27, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: Quite a long way from ideal, since it implies that an administrator has to be involved even if the program is only sitting in an unprivileged user's home directory (or is a symlink in ~ good enough?).

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

2012-08-15 Thread Graeme Geldenhuys
Hi, On 15 August 2012 12:49, Jonas Maebe jonas.ma...@elis.ugent.be wrote: You said that you manually created the symbolic link. I simply explained that you should never do that, and instead install the development packages because they will do that (correctly) for you. So my applications

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

2012-08-15 Thread Graeme Geldenhuys
Hi, On 15 August 2012 14:39, Jonas Maebe jonas.ma...@elis.ugent.be 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? I have no idea, which is why I also said in my first reply: Umm, so

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

2012-08-15 Thread Graeme Geldenhuys
Hi, On 15 August 2012 15:32, Reinier Olislagers reinierolislag...@gmail.com wrote: And you can use the (Firebird/Interbase Services IIRC) API to get the server version. I seem to remember Ludo's recent addition to FPC has this functionality. Yes, but you are jumping the gun here! My problem

Re: RE : RE : [fpc-pascal] Re: linux: should we hard-code versionedorunversioned shared libraries in our apps?

2012-08-15 Thread Graeme Geldenhuys
On 15 August 2012 17:42, Ludo Brands ludo.bra...@free.fr wrote: You can't be connected the 2 at the same time but that is a run-time issue, not design time. I'm not sure I'm following. Do you mean SqlDB can't connect to two different database at the same time? I can't think that is true, so

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

2012-08-15 Thread Graeme Geldenhuys
Hi, On 15 August 2012 19:02, Marco van de Voort mar...@stack.nl wrote: Did you try ibase60dyn.initializeibase60('whatever.so'); in your dpr ? I'm sure I can add that, and I'm sure it will work for my Firebird connections, but other libraries I use don't have such functionality. I'm trying to

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

2012-08-15 Thread Graeme Geldenhuys
On 15 August 2012 21:53, Sven Barth pascaldra...@googlemail.com wrote: Did you look at the source/makefile or the binary? If the latter then this is exactly what FPC (or more precisely the linker) does when you statically link to a shared library Yes, FlameRobin was statically linked. But

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

2012-08-15 Thread Graeme Geldenhuys
On 15 August 2012 22:10, Marco van de Voort mar...@stack.nl wrote: Blend perfectly with the distro they are build for, but if changes occur chances on recovery are slim. Be more specific, what changes? Dynamic linking and Static linking both have there pros and cons. Most seem to prefer

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

2012-08-16 Thread Graeme Geldenhuys
Hi, On 16 August 2012 04:31, Marco van de Voort mar...@stack.nl wrote: It's not a FPC problem, it is a linux problem that apps are not crossdistribution distributable. My applications ARE all cross-dirstro capable. And they are damn good at running on new and old distros. eg: I have compiled

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

2012-08-16 Thread Graeme Geldenhuys
Hi, On 16 August 2012 08:50, Michael Van Canneyt mich...@freepascal.org wrote: The list is endless. So yes, dynamically loading is a good thing. Indeed. I much rather prefer dynamic linking. So, what is the problem, and what started the whole discussion: the FPC team (i.e. us) simply chose

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

2012-08-16 Thread Graeme Geldenhuys
Hi Michael, On 16 August 2012 14:11, Michael Van Canneyt mich...@freepascal.org wrote: We'll solve the problem, thereby improving sqldb. I will implement it myself next week: * Change default library names to make more sense. * Implement library loader for cases where the default library

Re: RE : RE : RE : RE : RE : [fpc-pascal] Re: linux: shouldwehard-codeversionedorunversioned shared libraries in our apps?

2012-08-16 Thread Graeme Geldenhuys
Hi, On 16 August 2012 14:39, Marco van de Voort mar...@stack.nl wrote: Then changing the simple default to libfbclient.so.2 is a problem for designtime, since designtime code doesn't even have the emergency initializeibase60 workarounds as option. Lazarus will also start to look for .2. I

Re: [fpc-pascal] Malformed email messages

2012-08-16 Thread Graeme Geldenhuys
Hi, On 16 August 2012 15:49, Sven Barth pascaldra...@googlemail.com wrote: The missing spaces where a topic some time ago already on one of the fpc or lazarus lists... I don't know what the outcome was though. AFAIK Graeme was the one who pointed it out that time. I'm using Gmail (forced to

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

2012-08-16 Thread Graeme Geldenhuys
Hi Reinier, On 16 August 2012 22:25, Reinier Olislagers reinierolislag...@gmail.com wrote: Presumably the sqldb would be changed for the v3 library then? Yes, but that will only be in Trunk, and could take up to a year before the next FPC stable release. I only deploy my commercial apps with

Re: Re : [fpc-pascal] Malformed email messages

2012-08-17 Thread Graeme Geldenhuys
On 17/08/12 09:49, Ludo Brands wrote: I wrote a little VBA module in Outlook that modifies the RE: back to Re: before sending the message and that seems to solve the problem. Almost. You now have an Re : in the front, and not a Re:. Removing the space before the colon should fix it

[fpc-pascal] Interbase vs Firebird header translation

2012-08-17 Thread Graeme Geldenhuys
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 ? Yeah, the unit naming scheme is a bit dodgy at the moment. At one

Re: Re : [fpc-pascal] Malformed email messages

2012-08-17 Thread Graeme Geldenhuys
On 17/08/12 11:17, Ludo Brands wrote: Well spotted. Outlook indeed generates RE : with the additional space. This should be fixed now. Well done, it seems to work 100% now. :-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

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

2012-08-17 Thread Graeme Geldenhuys
On 17/08/12 13:58, LacaK wrote: Or split header files ... but then we must also create TFBConnection (like TIBConnection) ? ... it seems to me more complicated ATM Correct. And it is only going to get more complicated and messy as time goes by. So fixing it in the correct manner is best in

[fpc-pascal] FPC vs Delphi's unicode string support questions

2012-08-18 Thread Graeme Geldenhuys
Hi, In the tiOPF project the v3 branch is a Delphi Unicode String enabled version of tiOPF, thus it only supports Delphi 2009/2010 and newer. A while back I had some discussion with Michael van Canneyt, and he believes FPC is sufficiently compatible to Delphi 2010 and later, so the tiOPF3

Re: [fpc-pascal] FPC vs Delphi's unicode string support questions

2012-08-18 Thread Graeme Geldenhuys
Hi, On 18 August 2012 15:05, Marco van de Voort mar...@stack.nl wrote: If it relies heavily on unicodestring, IMHO yes. Well, there is a clear distinction being made between AnsiString and String in many classes. For example: TtiCompressAbs = class(TObject) public function

Re: [fpc-pascal] FPC vs Delphi's unicode string support questions

2012-08-18 Thread Graeme Geldenhuys
Hi, On 18 August 2012 15:15, Jürgen Hestermann juergen.hesterm...@gmx.de wrote: 1) Is it correct that String AnsiString any more? Well, it never was. At least string could also be a shortstring, maybe other strings too meanwhile (I don't know). I guess I was a bit vague. All projects I

Re: [fpc-pascal] FPC vs Delphi's unicode string support questions

2012-08-18 Thread Graeme Geldenhuys
Hi, On 18 August 2012 16:11, Jonas Maebe jonas.ma...@elis.ugent.be wrote: 1) Is it correct that String AnsiString any more? Only in {$mode delphiunicode} (which is what you should use if you want to compile code written for a Delphi version in which string=unicodestring). OK, that would

Re: [fpc-pascal] FPC vs Delphi's unicode string support questions

2012-08-18 Thread Graeme Geldenhuys
On 18 August 2012 16:11, Jonas Maebe jonas.ma...@elis.ugent.be wrote: 1) Is it correct that String AnsiString any more? Only in {$mode delphiunicode} (which is what you should use if you want to compile code written for a Delphi version in which string=unicodestring). I've enabled that new

Re: [fpc-pascal] FPC vs Delphi's unicode string support questions

2012-08-18 Thread Graeme Geldenhuys
Hi On 18 August 2012 22:44, Jonas Maebe jonas.ma...@elis.ugent.be wrote: The mode is called delphiunicode and in Delphi unicode versions, string = unicodestring. Not to get this thread into one of those heated unicode discussions again, but couldn't FPC at least do one better that Delphi.

Re: [fpc-pascal] FPC vs Delphi's unicode string support questions

2012-08-18 Thread Graeme Geldenhuys
Hi, On 18 August 2012 22:50, Jonas Maebe jonas.ma...@elis.ugent.be wrote: If you don't want this code page behaviour anyway, you can use the following {$mode delphiunicode} {$modeswitch systemcodepage-} OK, I think I got my final answer on this FPC is definitely not ready to port any

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

2012-08-22 Thread Graeme Geldenhuys
On 22 August 2012 18:47, Daniel Gaspary dgasp...@gmail.com wrote: The obvious example: insert calls to logging procedures at the enter and exit of each method, procedure or function of a unit. This is already possible for some time. Take a look at the 'fpprofiler' project. I have a version of

Re: [fpc-pascal] Linker speed

2012-08-24 Thread Graeme Geldenhuys
On 24 August 2012 10:11, Rainer Stratmann rainerstratm...@t-online.de wrote: Sometimes there is the message: /urs/bin/ld: warning: link.res contains output sections; did you forget -T? The latest FPC under Linux now always produces this message. Search the message archives... I asked this

[fpc-pascal] Policy regarding HTML messages

2012-08-26 Thread Graeme Geldenhuys
To the mailing list admin, What is the policy with HTML messages in this mailing list? I find it very annoying when messages to mailing lists are in HTML - this seems to be the general consensus in most mailing lists. I was under the impression that only plain text message was allowed in this

[fpc-pascal] Re: Policy regarding HTML messages

2012-08-26 Thread Graeme Geldenhuys
On 25/08/12 23:14, Graeme Geldenhuys wrote: What is the policy with HTML messages in this mailing list? Ah, I found the following page which describes just that... http://lists.freepascal.org/mailman/listinfo/fpc-pascal 3) Do not use HTML mail, or worse RTF mail. Some mailreaders don't

[fpc-pascal] GDB help needed please

2012-08-29 Thread Graeme Geldenhuys
Hi, I hope somebody knows more about GDB that I. I'm trying to debug an error in one of our Master Maths projects. This error only occurs under Windows, where it bombs out at random times (in a specific section of our product) with a Segmentation Fault error. GDB pauses the program at that

Re: [fpc-pascal] GDB help needed please

2012-08-30 Thread Graeme Geldenhuys
On 29/08/12 23:23, Jonas Maebe wrote: The first thing you can try is to compile with -gh, hoping that it will abort in a place closer to the cause of the problem. -CRr is also a very useful debugging switch. Thanks for the detailed information. The bug is not fixed yet, but I did eventually

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

2012-08-30 Thread Graeme Geldenhuys
On 30/08/12 17:07, Jonas Maebe wrote: Turbo Pascal does not support the result alias for the function result. Yup, I can confirm that. I just tested with Turbo Pascal 5.5 :) Wow, that brought back memories. Graeme. ___ fpc-pascal maillist -

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

2012-08-31 Thread Graeme Geldenhuys
On 31/08/12 09:27, Rainer Stratmann wrote: I could swear that it supports it... I thought the same, and that is why I tried it myself. :) I guess we have been with Object Pascal for too long, and forgot the difference between Pascal and Object Pascal. Graeme.

Re: [fpc-pascal] Re: Editing resource of executable

2012-08-31 Thread Graeme Geldenhuys
On 31/08/12 21:18, Mark Morgan Lloyd wrote: Of course, an even safer way would be to leave the executable alone and to put an early check in the startup code that a subsidiary key file existed, and for that key to include something that identified the machine or site on which the program was

[fpc-pascal] Resource compiler under Linux - windres?

2012-08-31 Thread Graeme Geldenhuys
Hi, Does anybody know if there is a 'winres' for non-Windows platforms? How do I compile *.rc files into *.res files under Linux, FreeBSD etc? Or does Linux/*BSD executables simply not support such resources? Or can FPC somehow compile/convert *.rc files into *.res files for all non-Windows

Re: [fpc-pascal] Re: Editing resource of executable

2012-08-31 Thread Graeme Geldenhuys
On 01/09/12 01:18, waldo kitty wrote: true... but as i recall, one of the goals of this capability was to not have extra files laying about... i remember the days of dongles and never liked them at all... +1 I hated those dongles too. The OnGuard code we use, I simply store the unique unlock

Re: [fpc-pascal] Resource compiler under Linux - windres?

2012-09-01 Thread Graeme Geldenhuys
On 01/09/12 09:24, Giulio Bernardi wrote: Just compiling windres from binutils sources should be enough. Thanks, I did that and it worked fine. Graeme. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Access to compiler's internal data structures

2012-09-01 Thread Graeme Geldenhuys
On 31/08/12 19:48, Kenneth Cochran wrote: So I'm finding myself in need of a parser for object pascal. The FPC compiler has it's own built-in parser that is optimised for its needs. There is a more general purpose object pascal compiler included in FCL (part of FPC too), in the 'fcl-passrc'

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

2012-09-07 Thread Graeme Geldenhuys
On 07/09/12 12:12, michael.vancann...@wisa.be wrote: I once did tests with that (600.000 records) and did not notice any influence of the transaction control. Same here... I've imported 100's of thousands of records with SqlDB+Firebird with no serious speed issues. Also from CSV files.

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

2012-09-08 Thread Graeme Geldenhuys
On 08/09/12 06:31, Martin Schreiber wrote: It depends on the reaction time of the network because AFAIK there is a roundtrip for every inserted record... I didn't commit the transaction after every record. I first tried in a batch of 1 records per transaction. Later I even bumped that up

[fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-13 Thread Graeme Geldenhuys
Hi, I received my Raspberry Pi today, and had a bit of a play. I'm using the Debian 6 OS with my Pi. I downloaded the FPC+fpGUI ARM archive (only a 3.5MB download), packaged by Paul Breneman. http://www.turbocontrol.com/easyfpgui.htm [Awesome work there, Paul. You can get much easier than

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-13 Thread Graeme Geldenhuys
On 13/09/12 17:19, Mark Morgan Lloyd wrote: I think I've had to install those on any Debian system I've used for development, so for any change you'd be up against the entire Debian philosophy. Good luck. I don't think one needs to approach the Debian guys directly. I think one should only

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-13 Thread Graeme Geldenhuys
On 13/09/12 17:35, Johann Glaser wrote: I also played with it, but only did a small Hello World! program. :-) :-) http://johann-glaser.blogspot.co.at/2012/06/raspberry-pi.html Thanks for the hint on your blog about making screenshots. I was just about to Google on how to do that from

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-13 Thread Graeme Geldenhuys
On 13/09/12 22:20, Marco van de Voort wrote: Is that the old squeeze or Raspbian? I have the wheezy one, which I believe is Raspbian? Graeme. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-13 Thread Graeme Geldenhuys
On 13/09/12 23:02, Marco van de Voort wrote: But the images from the PI website with Wheezy in their name are v5, and thus not hf. A month or so back, the PI foundation changed their default distro from wheezy (eabi,v5) to raspbian. Thanks for the info. I'll take a look of the foundation

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-14 Thread Graeme Geldenhuys
On 13/09/12 23:02, Marco van de Voort wrote: thus not hf. A month or so back, the PI foundation changed their default distro from wheezy (eabi,v5) to raspbian. So far the Raspbian image is pretty rubbish, compared to the pre-configure one I bought on my SD card. I guess the raspbian it too

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-14 Thread Graeme Geldenhuys
On 14/09/12 10:13, Marco van de Voort wrote: Did you get the foundation recommended image, or did you get some daily build or so? The recommended image on this page: Raspbian wheezy 2012-08-16 http://www.raspberrypi.org/downloads I've just installed the Pisces image from the

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-14 Thread Graeme Geldenhuys
On 14/09/12 09:10, Mark Morgan Lloyd wrote: I don't believe you've mentioned Maximus here before, does it pull in the form designer etc.? Maximus is very basic at the moment. A project manager, syntax highlighting in editor, macro support in the settings dialogs, Find and Procedure List

Re: [fpc-pascal] Function for checking correct file name

2012-09-14 Thread Graeme Geldenhuys
On 12/09/12 19:51, Krzysztof wrote: Hi, Exists any multiplatform function which check if string contains not allowed characters (like / \ on windows) for filename? Nothing in FPC as far as I know, but once again tiOPF does provide that. Have a look at the tiUtils.pas unit in tiOPF v2.

Re: [fpc-pascal] Function for checking correct file name

2012-09-14 Thread Graeme Geldenhuys
On 14/09/12 13:48, Krzysztof wrote: I just quicky googled not allowed characters and wrote this simple function: Also in Windows (as far as I know), file names my not be longer than 255 characters. So you will have to check the length of AFilename parameter too. Regards, - Graeme -

Re: [fpc-pascal] Function for checking correct file name

2012-09-14 Thread Graeme Geldenhuys
On 14/09/12 15:02, Howard Page-Clark wrote: As is so often the case, a truly cross-platform solution requires a good... Under linux such a check is easy. Everything is accepted, expect for the NUL character. :-) Regards, - Graeme - ___

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-14 Thread Graeme Geldenhuys
On 14/09/12 14:22, Mark Morgan Lloyd wrote: It was just an idle query... it might turn out to be possible to build it by taking sources of about the right age from e.g. Slackware 8.1, but right now I've got too much else on my plate to get into this. The alternative is to revert fpGUI to using

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-14 Thread Graeme Geldenhuys
On 14/09/12 14:22, Mark Morgan Lloyd wrote: It was just an idle query... it might turn out to be possible to build it by taking sources of about the right age from e.g. Slackware 8.1, but right now I've got too much else on my plate to get into this. Thinking about it, there is a 100% Pascal

Re: [fpc-pascal] Function for checking correct file name

2012-09-14 Thread Graeme Geldenhuys
On 14/09/12 16:50, Jonas Maebe wrote: And the /. Ah yes, you are correct. Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Function for checking correct file name

2012-09-15 Thread Graeme Geldenhuys
On 15/09/12 10:54, Sven Barth wrote: Right... but 255 characters for a filename is already rather much as well when I compare this with the amount of text I can squash into a SMS ;) Now I can't remember exactly, is that 255 characters, or 255 bytes? Because if it is the latter, then the

Re: [fpc-pascal] FPC + fpGUI + Raspberry Pi = fantastic

2012-09-16 Thread Graeme Geldenhuys
On 16/09/12 06:08, Paul Breneman wrote: Three minimal FPC and fpGUI distros were just updated on this page: http://www.turbocontrol.com/easyfpgui.htm Awesome, thanks Paul. I can see I'll have to order another RPi, or more SD cards. :-) The Raspxbmc distro works really well as a media

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Graeme Geldenhuys
On 2012-09-24 14:39, Christo wrote: I'm interested in testing your wrapper. Unfortunately I cannot clone the git link above, I get an error (fatal: https://github.com/hansiglaser/pas-libusb/tree/libusb-1.0/info/refs not That was a web link, not the git url. If you followed that link with

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Graeme Geldenhuys
On 2012-09-25 17:22, Bernd wrote: I highly recommend using the easygit wrapper to make life easier, especially when you come from SVN because git will be very confusing Thanks for the tip, but Git is *not* difficult to use. To cover the average developer workflow, you need like 3-4 commands

[fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Graeme Geldenhuys
Hi, Somebody in the fpGUI support newsgroup raised an issue when using BOM, XMLRead units under Linux. Does the use of the DOM, XMLRead and XMLWrite units in FCL (from FPC 2.6.0) require the use of cwstring under Linux? I'm using those units in the FPTest (Free Pascal Unit Testing Framework)

Re: [fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 09:18, Reinier Olislagers wrote: Is there existing code available for getting fpcunit test results into a database? No, but the Test Listener interface makes such an addition very easy. Simply create a TDatabaseListener that implements the ITestListener interface. It's only 5

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 09:41, michael.vancann...@wisa.be wrote: XMLRead uses it, yes. Umm, so how would that affect applications that normally use UTF-8 packed in AnsiString? Like fpGUI and LCL based applications. To give you the exact example. He has XML units he would like to unit test. He can use

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 10:01, michael.vancann...@wisa.be wrote: I'm also not sure how using cwstring unit would affect fpGUI apps that use UTF-8 inside AnsiString containers. (just like LCL does) It all depends on the XML. Sorry, I'm not very versed on WideString managers, so excuse if this is a

Re: [fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 10:25, Reinier Olislagers wrote: Ah, Listeners thanks. Is this listener concept something that's common to more xunit frameworks (junit... etc) or is it an fpcunit invention? I think the idea came from DUnit, though FPCUnit was heavily based on the JUnit design. DUnit2 and

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 10:28, michael.vancann...@wisa.be wrote: No, it is just for the XML reader, since it uses widestrings: Ah, so it only takes affect on the WideString type, not the String type. I guess from the name 'widestring manager' I should have seen that relationship. :) Thanks Michael.

Re: [fpc-pascal] TListBox, scroll horizontally

2012-10-04 Thread Graeme Geldenhuys
Wrong mailing list. Graeme. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] problems compiling FPC

2012-10-16 Thread Graeme Geldenhuys
On 2012-10-16 22:01, Marco van de Voort wrote: [bold][font size=1][color=red][style=blink] The starting compiler is only guaranteed [snip] [/style][/color][/font][/bold] hehehe It is rather crazy how often this same problem occurs on the mailing list. Just thinking out

<    1   2   3   4   5   6   7   8   9   10   >