Re: [Lazarus] GDB is not good, any tricks to improve it?

2016-05-26 Thread Tony Whyman
Neither do I. Just making the point in case that was where the problem lay. On 26/05/16 10:05, Graeme Geldenhuys wrote: Why are you running anti-virus software on a development machine in the first place? That’s been a known fact in all companies I’ve worked for - don’t do it. Thinking about

Re: [Lazarus] GDB is not good, any tricks to improve it?

2016-05-26 Thread Tony Whyman
mised out" just when need to get its value. Tony Whyman On 26/05/16 06:31, Dennis wrote: I am using Lazarus 1.7 (2016-04-20) with FPC 3.1.1 Great Work guys! However, the gdb that comes with it is not as good. I know debugger is hard to write so I am not blaming it. I just hope someone

Re: [Lazarus] Do we really need a PaintSwastika procedure?

2016-01-08 Thread Tony Whyman
ppery slope to proposing that English is replaced by a language called Newspeak where it is impossible to utter or think an heretical thought. Let's end this double plus ungood quackspeak. Good day Tony Whyman On 07/01/16 19:29, Juha Manninen wrote: On Thu, Jan 7, 2016 at 1:41 PM, Terry A. Haima

Re: [Lazarus] Strange application startup problem

2015-12-04 Thread Tony Whyman
Any Initialization clauses in your form or the units it brings in? On 04/12/15 00:52, Aradeonas wrote: Hi, Today I open one of my applications and start working on it and made many changes and hit the run but it will immediately crash! So like a programmer I add a break poit on my main form

Re: [Lazarus] Are you on Windows 10? Are you experiencing slow installs? Here's the deal...

2015-12-03 Thread Tony Whyman
Same here - Vista was such a dog... When I read this thread, the following comes to mind: https://en.wikipedia.org/wiki/Schadenfreude On 02/12/15 09:38, Graeme Geldenhuys wrote: On 2015-12-02 09:14, Anthony Walter wrote: Are you on Windows 10? I bet you are. Nope - haven't had Windows on

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Tony Whyman
This may be an appropriate use for EnterCriticalSection and ExitCriticalSection, although why don't you just use a different "prefix" in the call to GetTempFile for each thread. On 25/11/15 13:51, Aradeonas wrote: Hi, I used GetTempFileName in a multi thread system and it causes problems as

Re: [Lazarus] Increasingly frustrated with DbGrids

2015-11-02 Thread Tony Whyman
Ah, but then you can't edit it in the IDE. OK, intercept classes are a quick and dirty way of avoiding defining a new component - but as long as you are willing to "hold your nose", they do a useful job. On 02/11/15 10:49, Mattias Gaertner wrote: Reintroducing 'TComboBox' can confuse users

Re: [Lazarus] Simplest way to have a safe thread queue

2015-10-21 Thread Tony Whyman
: shared memory, mutexes, single and multi-lock gates. You can download the source at http://www.mwasoftware.co.uk/ibx Regards Tony Whyman MWA On 21/10/15 11:07, Aradeonas wrote: Hi, [Cross posted on forum so if you want answer there : http://forum.lazarus.freepascal.org/index.php/topic

Re: [Lazarus] Simplest way to have a safe thread queue

2015-10-21 Thread Tony Whyman
Look in xv5ipc.inc for the Linux implementation and winipc.inc for the Windows implementation. You are probably not interested in the class TGlobalInterface (other than as example code) as this is the IBSQLMonitor use of the IPC. The other classes may be of interested and are documented in the

[Lazarus] GB18030 support in Lazarus

2015-10-16 Thread Tony Whyman
Does anyone know if the lazutf8 functions also work with GB18030 (Chinese character set)? Tony Whyman MWA -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] GB18030 support in Lazarus

2015-10-16 Thread Tony Whyman
In terms of "work", if I use functions such as UTF8Length and ValidUTF8String on a GB18030 string should they always work, or are there exceptions? I am less concerned with character set conversions at present. Tony Whyman MWA On 16/10/15 10:10, Mattias Gaertner wrote: On Fri, 16 Oct 2

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Tony Whyman
the corner. That's because as soon as FPC 3 becomes the required compiler there will be backwards compatibility issues (e.g. the TBookmark type changes break any app that uses it). Tony Whyman MWA http://wiki.freepascal.org/Version_Numbering On 12/10/15 13:03, JuuS wrote: Hi, Lazarus has had

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Tony Whyman
Sorry forgot to add the link http://wiki.freepascal.org/Version_Numbering On 12/10/15 14:07, Tony Whyman wrote: This could be a good moment for someone to bring the Wiki up-to-date -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] multi step dialog

2015-08-17 Thread Tony Whyman
On 17/08/15 15:33, Graeme Geldenhuys wrote: I honestly don't see the point of a dedicated wizard class, when the PageControl already does exactly what is needed. Like I said, it worked just fine as far back as the D5..D7 and Kylix days. Maybe the later Delphi staff simply didn't know about the

Re: [Lazarus] multi step dialog

2015-08-17 Thread Tony Whyman
On 17/08/15 07:59, Graeme Geldenhuys wrote: In fpGUI I simply use a PageControl and set TabPosition = None. In Delphi 5-7 and Kylix I used to do similar, but can't remember what exact control I used... might have been PageControl too. Regards, - Graeme - A TPageControl is also what I use

Re: [Lazarus] An online package manager

2015-08-10 Thread Tony Whyman
the repository as a RESTful service could be interesting, allowing packages to be added and removed using (authenticated) PUT and DELETE methods in true cloud storage fashion. Tony Whyman MWA -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] An online package manager

2015-08-10 Thread Tony Whyman
On 10/08/15 16:15, Michael Van Canneyt wrote: 4. All packages in the repository should be signed (e.g. using a GPG user key). Only packages signed using a known key should be allowed to install. I don't see the point in that. An online repository is potentially vulnerable to: - DoS

Re: [Lazarus] Linux mint install

2015-07-24 Thread Tony Whyman
Larry, Your best bet is to find the deb file using the GUI File Manager. Double click on it and when the package installer opens, click on the install button. This should install it and any dependencies. If you must install from the command line, its typically two steps: sudo dpkg -i path

Re: [Lazarus] LazReport - Feature questions

2015-07-10 Thread Tony Whyman
Well - good luck - Lazreport took a long time to get stable and certainly contains many idiosyncrasies that could benefit from a redesign. But please ensure that there is a clear migration path to any new reporting engine. Tony Whyman MWA On 09/07/15 20:45, Michael Van Canneyt wrote: Just

Re: [Lazarus] Adding data field to a child node in a treeview

2015-07-04 Thread Tony Whyman
Susie, You may find the code for TIBTreeView in the IBX for Lazarus package as a useful example of how to create a data aware treeview. Even you don't want to use IBX, the overall approach should work with other DB packages. Tony Whyman MWA On 04/07/15 09:46, Susie Nicol wrote: Hi - me

Re: [Lazarus] how to find this error?

2015-06-29 Thread Tony Whyman
Take a look at http://wiki.freepascal.org/Lazarus_known_issues_%28things_that_will_never_be_fixed%29#TStatusBar_Panels_2 It's probably one of those annoying TStatusBar (won't fix) issues. On 29/06/15 10:43, FreeMan wrote: fpc r31177 lazarus r49465 qt x64 osx my project work in osx qt64, win32

Re: [Lazarus] OOP - where do you start?

2015-06-26 Thread Tony Whyman
the need to get most of the data model in place before building the application. Tony Whyman MWA On 26/06/15 12:30, Graeme Geldenhuys wrote: Hi, Last night I was working on a relatively new project. This got me thinking... How do others tackle such a task? So here is my question: When

Re: [Lazarus] Packages can't compile - checksum changed error

2015-06-25 Thread Tony Whyman
Try in the IDE Run-Clean up and Build Often works for me with this sort of problem. Tony On 25/06/15 11:41, Graeme Geldenhuys wrote: Hi, This is a odd one, but I'll try and explain as best I can. This relates to the *.lpk packages in the tiOPF project. These packages haven't changed for

Re: [Lazarus] Embedded Firebird bundled with OSX application

2015-06-22 Thread Tony Whyman
I would guess that this is going to be very similar to running the same on Linux - but with the usual different flie location/conventions. I have written up how to do this with IBX on Linux here http://mwasoftware.co.uk/on-linux However you do it, the really key point is to use an empty

Re: [Lazarus] EPIKTIMER etc

2015-06-08 Thread Tony Whyman
So, do we conclude that Microsoft's Embrace, extend, and extinguish strategy now applies to Time itself? On 08/06/15 12:34, Michael Schnell wrote: Just to let you know In search of a problem completely unrelated to fpc and Lazarus I found out that the reason of the severe timing

Re: [Lazarus] Date value 0

2015-05-29 Thread Tony Whyman
I must say that I'm amazed at how long this thread is - but then I shouldn't be. Many moons ago, I used to work at the long gone British Mainframe Computer company ICL. Here, there was a well used term a bicycle sheds argument. This supposedly came from the sales force retelling how the

Re: [Lazarus] IDE unable to load form due to missing property

2015-05-15 Thread Tony Whyman
. Tony W On 15/05/15 14:19, Michael Van Canneyt wrote: On Fri, 15 May 2015, Tony Whyman wrote: Open the problem form in the designer. Ignore the missing property error and continue loading Shouldn't choosing 'ignore' mark the form as modified ? Michael

Re: [Lazarus] IDE unable to load form due to missing property

2015-05-15 Thread Tony Whyman
Open the problem form in the designer. Ignore the missing property error and continue loading Do something to change the form. e.g. move it Save the form. now re-compile On 15/05/15 14:13, Graeme Geldenhuys wrote: Hi, I'm referring to this change. [svn r46263]== commit

Re: [Lazarus] *.lfm files in unit output directory?

2015-05-07 Thread Tony Whyman
I thought that it had always done this, ever since the lfm format was used. If you don't link the lfm files in then how do you create forms? Are you sure that your problem is not down to not being able to find windres on your system? On 07/05/15 12:22, Graeme Geldenhuys wrote: Hi I just

Re: [Lazarus] Lazarus 1.4 review

2015-04-30 Thread Tony Whyman
This website seems a bit weird. I went to have a look at the article and the page was blank. Now I always uses the excellent noscript to protect me from some of more nasty aspects of the internet and this was clearly blocking something. Looking at the HTML, comes up with things like:

Re: [Lazarus] Very strange errors when editing programs using Frames

2015-04-08 Thread Tony Whyman
in the form's loaded method. That way you ensure that the IDE does not helpfully modify properties for you. If you do do that, beware, for some reason loaded can get called more than once for each form. Tony Whyman MWA On 08/04/15 14:58, Donald Ziesig wrote: Hi All! I'm not sure if the following

[Lazarus] TStringFIeld and Multibyte character sets

2015-04-01 Thread Tony Whyman
I've just submitted a bug report: http://bugs.freepascal.org/view.php?id=27766 plus the related http://bugs.freepascal.org/view.php?id=27768 27766 is intended to improve handling of multibyte character sets by TStringField, only I am not quite sure about whether I have fully understood the

Re: [Lazarus] Trouble understanding StatusBar panels

2015-04-01 Thread Tony Whyman
This one annoys me as well but is a documented issue in the wiki see http://wiki.freepascal.org/Lazarus_known_issues_%28things_that_will_never_be_fixed%29#TStatusBar_Panels_2 The TStatusPanel.Bevel and TStatusPanel.Alignment properties are ignored by all platforms except Windows. On

[Lazarus] MaskEdit and Unexpected Message Order

2015-03-20 Thread Tony Whyman
binZohN8vMW6E.bin Description: PGP/MIME version identification encrypted.asc Description: OpenPGP encrypted message -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] MaskEdit and Unexpected Message Order

2015-03-20 Thread Tony Whyman
Please ignore - beware latest Thunderbird upgrade seems to set encrypt on even when there is no key set up! On 20/03/15 10:27, Tony Whyman wrote: -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

[Lazarus] TCustomEdit and LM Messages Ordering

2015-03-20 Thread Tony Whyman
I have been investigating why TCustomEdit descendents (such as TDBDateEdit) do not appear to obey AutoSelect when selected using a mouse click. On the other hand, AutoSelect appears to work when tab is used to select the control. I am using Linux Mint 17/AMD64/GTK2 and, if you read on, the

[Lazarus] Problem with TCustomTreeView

2014-12-05 Thread Tony Whyman
and FEditingItem made visible as a protected read only property. Any comments? Tony Whyman MWA -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Problem with TCustomTreeView

2014-12-05 Thread Tony Whyman
On 05/12/14 10:50, Mattias Gaertner wrote: On Fri, 05 Dec 2014 10:25:37 + Tony Whyman tony.why...@mccallumwhyman.com wrote: and which calls a new event OnNodeChanged. TCustomTreeView.NodeChanged is called from TTreeNode whenever the Text, Data or Parent is changed. What about the other

Re: [Lazarus] Default debug mode and internal debugger

2014-12-05 Thread Tony Whyman
I hope that mail threat was a typo ;) I have now written up what I found as http://bugs.freepascal.org/view.php?id=27136 Hopefully this is clear on the problem. On 05/12/14 12:52, Martin Frb wrote: Just to be sure, you refer to 3 different things throughout this mail threat. ... --

Re: [Lazarus] Default debug mode and internal debugger

2014-12-04 Thread Tony Whyman
It would be useful if someone could post a fix as I am getting this problem all the time with 1.2.6. On 04/12/14 15:29, Mattias Gaertner wrote: On Thu, 4 Dec 2014 16:11:54 +0100 Reimar Grabowski reimg...@web.de wrote: Hi, if you let the IDE create debug and release build modes for you the

Re: [Lazarus] Default debug mode and internal debugger

2014-12-04 Thread Tony Whyman
wrote: On Thu, 04 Dec 2014 17:11:37 + Tony Whyman tony.why...@mccallumwhyman.com wrote: It would be useful if someone could post a fix as I am getting this problem all the time with 1.2.6. 1.2.6 does not have components/lazdebugger. What debugger do you mean? Mattias

[Lazarus] Lazarus 1.2.6 and GDB 7.7

2014-11-14 Thread Tony Whyman
Is anyone having much luck with Lazarus 1.2.6 and GDB 7.7 (I'm using Linux Mint 17/Ubuntu 14.4). As soon as I start using it with anything more than a simple program and still using the default debug settings, the debugger keeps crashing when an exception occurs. Here's a typical error While

Re: [Lazarus] Detecting if a remote web server is running

2014-10-30 Thread Tony Whyman
an appropriate error message when they try to access a non-responding server. You could even have a background thread to keep doing this, if it is really important to tell the user as soon as possible. Tony Whyman MWA On 30/10/14 09:44, Richard Mace wrote: Hi All, What's the most reliable way

Re: [Lazarus] LazReport - Group bands

2014-09-24 Thread Tony Whyman
Alejandro, Group Headers do work - I use them myself. Looking at a known working report, the condition field in the group header is linked to field in the dataset used for the Master Data band. Maybe this is where your problem lies. Regards Tony Whyman MWA On 24/09/14 00:01, Alejandro