Re: [Lazarus] Release Candidate 1 of Lazarus 1.6

2015-12-09 Thread Luca Olivetti
El 09/12/15 a les 13:21, Mattias Gaertner ha escrit: On Wed, 9 Dec 2015 12:33:08 +0100 Luca Olivetti <l...@wetron.es> wrote: [...] this isn't a lazarus bug but most probably a problem with fpc: ExpandUnCFileNameUTF8 (which in turns calls SystUtils.ExpandUNCFileName) returns '\' when

Re: [Lazarus] Release Candidate 1 of Lazarus 1.6

2015-12-09 Thread Luca Olivetti
*not* the '..' that's confusing it, it's the mapped drive. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Release Candidate 1 of Lazarus 1.6

2015-12-09 Thread Luca Olivetti
El 09/12/15 a les 13:53, Bart ha escrit: On 12/9/15, Luca Olivetti <l...@wetron.es> wrote: this isn't a lazarus bug but most probably a problem with fpc: ExpandUnCFileNameUTF8 (which in turns calls SystUtils.ExpandUNCFileName) returns '\' when called with That's odd, b

Re: [Lazarus] Release Candidate 1 of Lazarus 1.6

2015-12-09 Thread Luca Olivetti
El 09/12/15 a les 17:07, Bart ha escrit: On 12/9/15, Luca Olivetti <l...@wetron.es> wrote: Yes, most probably the bug is in fpc, but note that lazarus 1.4.x had its own implementation instead of relying on sysutils. No, it did not. It also called SysUtils.ExpandUncFilename(). Your bug

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 10:28, Graeme Geldenhuys ha escrit: On 2015-11-11 09:16, Luca Olivetti wrote: Try the attached project. LCL inconsistency strikes again. WindowState:=wsMaximized; The above line of code has no affect under FreeBSD with LCL-GTK2. I see a small borderless window

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 01:21, Luca Olivetti ha escrit: El 10/11/15 a les 23:37, Graeme Geldenhuys ha escrit: On 2015-11-10 21:09, Luca Olivetti wrote: But in the end I have to render it on the LCL canvas Via a single BitBlt which should be more than fast enough for what you described. Unless LCL

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 10:26, Luca Olivetti ha escrit: El 11/11/15 a les 10:16, Luca Olivetti ha escrit: El 11/11/15 a les 09:28, Luca Olivetti ha escrit: That at least explains the timing differences (but not the unresponsiveness of the full screen application under windows 7) TextRect! Try

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 10:16, Luca Olivetti ha escrit: El 11/11/15 a les 09:28, Luca Olivetti ha escrit: That at least explains the timing differences (but not the unresponsiveness of the full screen application under windows 7) TextRect! Try the attached project. Under windows XP the TextRect

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 16:55, Graeme Geldenhuys ha escrit: On 2015-11-10 12:28, Luca Olivetti wrote: I guess codebot needs a newer fpc, it doesn't compile with 2.6.4. You can also take a look at AggPas, which can easily accomplish what you ask for - with out 0-1% CPU load (tested previously on my

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
or the other. Tomorrow I'll see if I can create a simple application that reproduces the problem using it. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 unit scrollinglabel; {$mode objfpc}{$H+} interface uses Classes

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 18:47, Graeme Geldenhuys ha escrit: On 2015-11-10 16:43, Luca Olivetti wrote: Impressive, but I looked at the source and it uses its own kind of application. Don't let the demos confuse you. The demos were implemented to be cross-platform in their own way, with its own

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 23:37, Graeme Geldenhuys ha escrit: On 2015-11-10 21:09, Luca Olivetti wrote: But in the end I have to render it on the LCL canvas Via a single BitBlt which should be more than fast enough for what you described. Unless LCL is seriously broken. I don't know if it's broken

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
for BGRABitmap to see if it's easy enough to add it to my project. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

[Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
than 2 pixels every 50ms the scrolling isn't smooth enough, but the required speed should be 6 or 7 pixels, and that's very unpleasant to the eye. Any suggestion? -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007

Re: [Lazarus] Test This Please

2015-11-06 Thread Luca Olivetti
the graph moving) and it has black corners, as well a a black background in the slider. Everything is fine with compositing enabled, but I usually leave it disabled. The hotkey works, $XDG_CURRENT_DESKTOP is KDE. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-06 Thread Luca Olivetti
t now I cannot find it. It is definitely more than 20 years old (and more than 30 ;-): http://www.computinghistory.org.uk/det/11554/TI-990-System/ Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010)

Re: [Lazarus] TTabcontrol color strangeness

2015-11-05 Thread Luca Olivetti
El 09/10/15 a les 09:23, Luca Olivetti ha escrit: Hello, If I use a TTabControl in windows xp with the classic theme, the color is the same as the solid color of the desktop and there's no property to change it. Shouldn't at least be the color of a normal window? This doesn't happen

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-02 Thread Luca Olivetti
El 03/11/15 a les 00:58, Leonardo M. Ramé ha escrit: What I don't get is what's the purpouse of TBookmark, I thought it was made for solving the problem I had. Yes, but only if you leave the dataset open. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93

[Lazarus] Increasingly frustrated with DbGrids

2015-11-02 Thread Luca Olivetti
y work for the editors defined in Grids.pas. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepasc

Re: [Lazarus] Increasingly frustrated with DbGrids

2015-11-02 Thread Luca Olivetti
El 02/11/15 a les 11:12, Luca Olivetti ha escrit: Hello, I constantly stumble with the behaviour of the TDBGrid. I understand that it's a complex component, but every time I find an issue an Luiz fixes it, two more pop up (or an older one resurfaces). The latest episode of the saga

Re: [Lazarus] Increasingly frustrated with DbGrids

2015-11-02 Thread Luca Olivetti
last week I asked here how to remove the border in a TPageControl), and I'll probably follow your advice here, still, I think that if the TDbGrid allows for a custom editor, it should work without this kind of hack. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34

Re: [Lazarus] Increasingly frustrated with DbGrids

2015-11-02 Thread Luca Olivetti
oesn't matter: the ide uses the old class, but the unit (and the grid) will see the new one. It's a hack, really, which will probably bite me in the rear somewhere in the future, but I have to ship the programme now :-( Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel.

Re: [Lazarus] External SIGSEGV (random) when assigning TBookmark

2015-11-01 Thread Luca Olivetti
is opened, buy you close it between getting the bookmark and setting it. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Too much space between TPageControl and its tabs

2015-10-29 Thread Luca Olivetti
? Is there an alternative component that I could use? For the time being, I use a panel and create the different controls at runtime, but this is possible only in simple cases, not for complex designs (well, of course it's possible but it's something I'd prefer to do visually). Bye -- Luca

Re: [Lazarus] Too much space between TPageControl and its tabs

2015-10-29 Thread Luca Olivetti
be possible as well. It works, but it introduces a dependency on the windows unit. I need it on windows, so it isn't a big concern, but I don't like it 100%. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007

Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-18 Thread Luca Olivetti
https://lists.debian.org/debian-kde/2015/10/msg00047.html) Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Luca Olivetti
with the gtk2 widgetset but do work with the qt one. Disclaimer: I don't usually need tryicons, but the various threads on them piqued my curiosity. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007

Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Luca Olivetti
(note that its normal value is KDE). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

[Lazarus] TTabcontrol color strangeness

2015-10-09 Thread Luca Olivetti
instead of the desktop color, but still isn't the normal color of a window.) Note that if I set a background image, the color of the TTabControl is still the solid color, i.e., it is not transparent. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext

Re: [Lazarus] Tray icon not working on Ubunut

2015-10-07 Thread Luca Olivetti
broken for years. It works just fine on Kubuntu. But only with the qt widgetset Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Tray icon not working on Ubunut

2015-10-07 Thread Luca Olivetti
5.3.2 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Tray icon not working on Ubunut

2015-10-07 Thread Luca Olivetti
El 07/10/15 a les 17:08, Luca Olivetti ha escrit: El 07/10/15 a les 10:30, Michael Van Canneyt ha escrit: It works just fine on Kubuntu. But only with the qt widgetset No. I use the GTK 2 widgetset on Kubuntu. I've never used Qt yet. Really, it doesn't work here with the gtk2 widgetset

Re: [Lazarus] Strange interaction between combox and IniPropStorage

2015-10-06 Thread Luca Olivetti
El 13/08/15 a les 09:24, Luca Olivetti ha escrit: El 12/08/15 a les 16:37, Luca Olivetti ha escrit: Definitely a regression: I just had to modify an old program (where this feature worked) and it doesn't work anymore :-( At least the workaround seems to do the job. It's not a regression

Re: [Lazarus] Lazarus program files very big, why?

2015-10-03 Thread Luca Olivetti
El 04/10/15 a les 00:06, Bo Berglund ha escrit: Amazingly this little program is 24.5 Mbytes as shown: -rwxr-xr-x 1 root root 24493881 Oct 3 21:35 project1 http://bfy.tw/26s2 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93

Re: [Lazarus] Strange interaction between combox and IniPropStorage

2015-08-13 Thread Luca Olivetti
El 12/08/15 a les 16:37, Luca Olivetti ha escrit: Definitely a regression: I just had to modify an old program (where this feature worked) and it doesn't work anymore :-( At least the workaround seems to do the job. It's not a regression, it's probably always been there, but I manually

Re: [Lazarus] Strange interaction between combox and IniPropStorage

2015-08-12 Thread Luca Olivetti
El 11/08/15 a les 12:22, Luca Olivetti ha escrit: El 11/08/15 a les 12:12, Luca Olivetti ha escrit: I just found a very strange bug: when I try to save the ItemIndex of a combobox through a TIniPropStorage, its value reverts to the value it had when the form was created. Every other value (I

Re: [Lazarus] Strange interaction between combox and IniPropStorage

2015-08-11 Thread Luca Olivetti
El 11/08/15 a les 12:12, Luca Olivetti ha escrit: I just found a very strange bug: when I try to save the ItemIndex of a combobox through a TIniPropStorage, its value reverts to the value it had when the form was created. Every other value (I use TEdit.Text and TSpinEdit.Value) is correctly

[Lazarus] Strange interaction between combox and IniPropStorage

2015-08-11 Thread Luca Olivetti
. Note that if you just create a new project and put the combobox and the inipropstorage on the main form, it works fine, maybe it has something to do with the ShowModal I'm using to show the form. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext

Re: [Lazarus] systemd

2015-06-27 Thread Luca Olivetti
#Linux_.28Fedora.29 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Luca Olivetti
://freepascal.org/docs-html/prog/progse22.html#x174-1770006.3 you can try and define the external as stdcall or if that fail try cdecl (though I'm not sure the default is different than delphi). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-23 Thread Luca Olivetti
El 23/06/15 a les 20:38, Bo Berglund ha escrit: On Tue, 23 Jun 2015 18:30:46 +0200, Luca Olivetti l...@wetron.es wrote: El 23/06/15 a les 17:51, Bo Berglund ha escrit: The problem is most likely in the conversion because even the smallest test application throws an exception on the very

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Luca Olivetti
and what can I do? Either you use {$MODE DELPHI} or you prepend the method with @, i.e. FTimer.OnTimer := @OnCheckTimer See: http://wiki.freepascal.org/Code_Conversion_Guide Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007

Re: [Lazarus] Newbie, porting class to FPC but get procedure assignment error

2015-06-19 Thread Luca Olivetti
cannot help you here. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

[Lazarus] How to cleanly terminate http server application/fastcgi application?

2015-04-13 Thread Luca Olivetti
I couldn't find a built-in way to cleanly terminate them, so I had to install a signal handler to issue an Application.Terminate. Is there a provided way that I missed? BTW, also, they don't daemonize under Linux/run as service under windows. Maybe they aren't supposed to? Bye -- Luca Olivetti

Re: [Lazarus] External SIGSEGV when trying to use data module components

2015-04-11 Thread Luca Olivetti
. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-17 Thread Luca Olivetti
-- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.4

2015-02-17 Thread Luca Olivetti
El 17/02/15 a les 12:00, Luca Olivetti ha escrit: El 16/02/15 a les 23:38, Mattias Gaertner ha escrit: == How to test == Download and install the 1.4RC1. - On Windows you can install as a 2ndary install, that will not affect your current install: http://wiki.lazarus.freepascal.org

Re: [Lazarus] Developing on Linux with files on Windows NTFS {Solved]

2015-02-07 Thread Luca Olivetti
set lib/$(TargetCPU)-$(TargetOS) in the Unit output directory (-FU), under Project-Project options-Compiler options-Paths (which should be the default). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007

Re: [Lazarus] New Get Lazarus Initiative

2015-02-04 Thread Luca Olivetti
try: OLD_PATH=$PATH export PATH=/home/luca/Development/FreePascal/fpc/bin/:$PATH export PPC_CONFIG_PATH=/home/luca/Development/FreePascal/fpc/bin fpc -iV PATH=$OLD_PATH And let me know if it reads: 3.0.1 I'll try. Bye -- Luca Olivetti Wetron Automation Technology http

Re: [Lazarus] New Get Lazarus Initiative

2015-02-04 Thread Luca Olivetti
install complete setup.sh: línea 239: ./lazarus: El fitxer o directori no existeix Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus

[Lazarus] Deleting a control in its OnClick event can cause a SIGSEV?

2014-12-31 Thread Luca Olivetti
hypothesis is true. Is it possible that destroying the control was the cause of the SIGSEV? TIA Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Typecast set to byte in mode OBJFPC

2014-12-31 Thread Luca Olivetti
El 31/12/14 a les 17:33, Jürgen Hestermann ha escrit: Is this realy compiler mode dependent? I can't find any documentation about this. Sorry, I meant that FlagSETType seems to be 4 bytes now. http://www.freepascal.org/docs-html/prog/progsu59.html#x66-650001.2.59 Bye -- Luca Olivetti

Re: [Lazarus] Deleting a control in its OnClick event can cause a SIGSEV?

2014-12-31 Thread Luca Olivetti
El 31/12/14 a les 19:26, Bart ha escrit: On 12/31/14, Luca Olivetti l...@wetron.es wrote: It turns out that in the OnClick event I was calling a method that freed the control that generated the OnClick, so I supposed that was the cause of the sigsev. Probably you are right. Been

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 00:05, Giuliano Colla ha escrit: Il 26/09/2014 22:47, Luca Olivetti ha scritto: El 26/09/14 22:45, Luca Olivetti ha escrit: Strange, on mageia 4, kde, lazarus 1.2.4 it doesn't work. What I'm trying to do is to tile windows one next to the other. Using GetWindowRect under windows

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 11:48, Hans-Peter Diettrich ha escrit: Luca Olivetti schrieb: Strange, on mageia 4, kde, lazarus 1.2.4 it doesn't work. What I'm trying to do is to tile windows one next to the other. Using GetWindowRect under windows I can do it properly, while on linux gtk the windows overlap

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 12:09, Luca Olivetti ha escrit: I'm puzzled: with a test program I see no difference in the size in both cases (right after showing the form and after pressing the button) *and* the size is the right one (in FormShow is always 1,1 btw). I must be doing something else wrong

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 12:23, Luca Olivetti ha escrit: El 27/09/14 12:09, Luca Olivetti ha escrit: I'm puzzled: with a test program I see no difference in the size in both cases (right after showing the form and after pressing the button) *and* the size is the right one (in FormShow is always 1,1 btw

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-27 Thread Luca Olivetti
El 27/09/14 14:32, zeljko ha escrit: On 09/27/2014 12:26 PM, Luca Olivetti wrote: El 27/09/14 12:23, Luca Olivetti ha escrit: El 27/09/14 12:09, Luca Olivetti ha escrit: I'm puzzled: with a test program I see no difference in the size in both cases (right after showing the form and after

[Lazarus] GetWindowSize misleading documentation or bug?

2014-09-26 Thread Luca Olivetti
), *but* the implementation (at least win32) actually removes the size of the borders and the caption. Is the documentation wrong or is it a bug? Btw: GetWindowRect returns the whole size in windows but not with gtk2. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-26 Thread Luca Olivetti
to be equal to the height of the title bar). Apparently the documentation isn't accurate, and there's a mix-up of the two functions So in theory GetWindowRect is the right function while GetWindowSize is redundant (since there's already width and height)? Bye -- Luca Olivetti Wetron Automation

Re: [Lazarus] GetWindowSize misleading documentation or bug?

2014-09-26 Thread Luca Olivetti
El 26/09/14 22:45, Luca Olivetti ha escrit: El 26/09/14 20:47, Giuliano Colla ha escrit: I was too hasty in my reply. After some tests here are the results: Yes, I was puzzled when you said it didn't work in an xp vm, since that's exactly the configuration I tested GetWindowSize

[Lazarus] Why lazchmhelp.pas sets InheritHandle conditionally on fpc version?

2014-09-02 Thread Luca Olivetti
+ BrowserProcess.InheritHandles:=false; BrowserProcess.CommandLine:=CommandLine; BrowserProcess.Execute; finally Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus

Re: [Lazarus] Why lazchmhelp.pas sets InheritHandle conditionally on fpc version?

2014-09-02 Thread Luca Olivetti
El 02/09/14 11:19, Mattias Gaertner ha escrit: On Tue, 02 Sep 2014 09:54:50 +0200 Luca Olivetti l...@wetron.es wrote: I saw in the 1.2.4 source this: {$if FPC_FULLVERSION20604} Proc.InheritHandles := false; {$endif} Why is it conditional? It is not conditional in 1.3. [...] 1.3

Re: [Lazarus] Grey windows in Lazarus IDE with GTK2 in Mint 17 + KDE

2014-08-18 Thread Luca Olivetti
although they work OK. Only minimizing and then restoring the IDE helps bring the normal color back. Yes, same here with mageia 4 (x86_64), kde desktop, lazarus 1.2.4. gtk is 2.24.22. It didn't happen with mageia 3 (gtk 2.24.17). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es

Re: [Lazarus] Memory leak hunt request

2014-05-04 Thread Luca Olivetti
://bugs.freepascal.org/view.php?id=12528 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

Re: [Lazarus] Now function - returning UTC?

2014-04-19 Thread Luca Olivetti
El 19/04/14 17:37, David Taylor ha escrit: Can anyone help with this apparently simple problem? lazutf8sysutils has a NowUTC function already defined Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007

Re: [Lazarus] Now function - returning UTC?

2014-04-19 Thread Luca Olivetti
El 19/04/14 20:55, Luca Olivetti ha escrit: El 19/04/14 17:37, David Taylor ha escrit: Can anyone help with this apparently simple problem? lazutf8sysutils has a NowUTC function already defined BTW, the name of the unit isn't really meaningful (NowUTC and GetTickCount64, the only 2

Re: [Lazarus] Always On Top (Linux) ZVDatetimeCtrls doesn't show up(Bug?)

2014-04-14 Thread Luca Olivetti
). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Always On Top (Linux) ZVDatetimeCtrls doesn't show up(Bug?)

2014-04-14 Thread Luca Olivetti
El 14/04/14 09:32, Luca Olivetti ha escrit: El 14/04/14 08:37, Juha Manninen ha escrit: ZVDatetimeCtrls is now included in Lazarus trunk sources and the component names are identical with Delphi component names. The report and possible example code should be done for that version. FWIW

Re: [Lazarus] about raised exception class 'External: SIGSEGV'

2014-04-14 Thread Luca Olivetti
terminating the program, so I can do a post-mortem and see where the SIGSEV occurred. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] about raised exception class 'External: SIGSEGV'

2014-04-14 Thread Luca Olivetti
impossible. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
El 02/04/14 09:08, Michael Van Canneyt ha escrit: On Tue, 1 Apr 2014, Mattias Gaertner wrote: On Tue, 01 Apr 2014 12:20:53 +0200 Luca Olivetti l...@wetron.es wrote: [...] function GetTickCount64: QWord; var tp: timespec; begin clock_gettime(CLOCK_MONOTONIC, @tp); Result

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
El 02/04/14 09:47, Luca Olivetti ha escrit: El 02/04/14 09:08, Michael Van Canneyt ha escrit: On Tue, 1 Apr 2014, Mattias Gaertner wrote: On Tue, 01 Apr 2014 12:20:53 +0200 Luca Olivetti l...@wetron.es wrote: [...] function GetTickCount64: QWord; var tp: timespec; begin

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
El 02/04/14 10:01, Mattias Gaertner ha escrit: On Wed, 02 Apr 2014 09:47:45 +0200 Luca Olivetti l...@wetron.es wrote: [...] Btw, in theory CLOCK_MONOTONIC_RAW should be even better, though it's only available from linux 2.6.28 CLOCK_MONOTONIC_RAW lacks the fixes by NTP. Isn't that's

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
enough). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
on stackoverflow but I cannot find the page right now), that one doesn't take into account the time during a suspension while the other does (I don't remember which is which) and that's an important difference depending on the application. Bye -- Luca Olivetti Wetron Automation Technology http

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-02 Thread Luca Olivetti
El 02/04/14 14:29, Marco van de Voort ha escrit: On Wed, Apr 02, 2014 at 01:19:39PM +0200, Luca Olivetti wrote: CLOCK_MONOTONIC_RAW would better emulate the WinAPI function GetTickCount. Well, yes, isn't that the function we're trying to emulate? (note that I personally don't need

[Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-01 Thread Luca Olivetti
-- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Better implementation of GetTickcount using clock_gettime

2014-04-01 Thread Luca Olivetti
El 01/04/14 20:03, Mattias Gaertner ha escrit: On Tue, 01 Apr 2014 12:20:53 +0200 Luca Olivetti l...@wetron.es wrote: [...] function GetTickCount64: QWord; var tp: timespec; begin clock_gettime(CLOCK_MONOTONIC, @tp); Result := (Int64(tp.tv_sec) * 1000) + (tp.tv_nsec div 100

Re: [Lazarus] Confused by help

2014-03-23 Thread Luca Olivetti
El 23/03/14 19:06, Graeme Geldenhuys ha escrit: On 2014-03-22 19:35, Luca Olivetti wrote: You just have to create a class derived from THelmManager (in unit HelpIntfs). Thanks for that info. On a side note: I see the Lazarus team still didn't update the OnHelp event - which uses

Re: [Lazarus] Confused by help

2014-03-22 Thread Luca Olivetti
derived from THelmManager (in unit HelpIntfs). I use it to invoke a pdf reader (sumatrapdf, since it accepts a keyword as a command line parameter). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007

Re: [Lazarus] How to access C and C++ libraries?

2014-03-06 Thread Luca Olivetti
(on Linux and maybe Windows) or good guides? Take a look here ftp://ftp.freepascal.org/fpc/docs-pdf/CinFreePascal.pdf and here http://wiki.lazarus.freepascal.org/Creating_bindings_for_C_libraries Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34

Re: [Lazarus] Lazarus Second Release Candidate, 1.2RC2

2014-02-14 Thread Luca Olivetti
El 14/02/14 00:21, Mattias Gaertner ha escrit: On Thu, 13 Feb 2014 20:17:31 +0100 Luca Olivetti l...@wetron.es wrote: [...] TBuildManager.DoCheckIfProjectNeedsCompilation icon has changed Project /home/luca/Datos/1354_vision_dot/programas_pc/test_plc/project1.ico don't know why (I didn't

Re: [Lazarus] Lazarus Second Release Candidate, 1.2RC2

2014-02-13 Thread Luca Olivetti
compiled, 1.4 sec 5 hint(s) issued Project project1 successfully built Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Lazarus Second Release Candidate, 1.2RC2

2014-02-13 Thread Luca Olivetti
every time I try to run the project). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

Re: [Lazarus] CopyFile in Windows

2013-11-11 Thread Luca Olivetti
(which returns an error code), FileUtil.CopyFile will throw an exception in case of error. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.2

2013-11-07 Thread Luca Olivetti
/view.php?id=22271 I don't think the spawned browser needs to inherit the handles of the calling process. In fact InheritHandles true caused me serious problems in the past. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007

Re: [Lazarus] Lazarus Release Candidate 1 of 1.2

2013-11-07 Thread Luca Olivetti
-paste bug, because the value is set to true in the constructor. Thank you. Will it be backported to 2.6.4? Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] WriteLn back to the GUI

2013-10-23 Thread Luca Olivetti
that and it works, right? So what's the problem? Plus, I keep getting segfaults when I close the application --something is calling InOutFunc when the app closes and still tries to write to a destroyed TMemo. add a call to CloseFile(Output) to the form OnDestroy event. Bye -- Luca Olivetti Wetron

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-15 Thread Luca Olivetti
Al 15/07/13 15:12, En/na Mark Morgan Lloyd ha escrit: There was also a requirement to interface to PLCs etc. (using, I'm told, the nodave library) For the record, libnodave works wonderfully with fpc. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004

Re: [Lazarus] Regressions in GTK2 interface ?

2013-06-12 Thread Luca Olivetti
desktop. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
, they're just transparent (I can see through the text that lies below). I'm using kde and the gtk2 version of Lazarus. Kde applications have icons in the menus, as do other gtk2 applications (like, e.g. thunderbird) Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
an application with a menu, put a breakpoint on those functions and they are not called. Just to be sure breakpoints are working, I also put one in InitThemes and it stops there as it should. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
Al 13/05/13 10:51, En/na Luca Olivetti ha escrit: Al 13/05/13 10:35, En/na Mattias Gaertner ha escrit: For those who think that their gtk settings is treated wrong by the LCL and want to debug it: The code is in lcl/interfaces/gtk2/gtk2themes.pas function TGtk2ThemeServices.GetOption

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
Al 13/05/13 11:34, En/na Paul Ishenin ha escrit: 13.05.2013 17:04, Luca Olivetti пишет: I added a TApplicationProperties to the form, set ShowMenuGlyphs to sbgSystem, now GetOption is called and the result is 1, however no glyphs are shown. Maybe you can find something useful here

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
Al 13/05/13 11:37, En/na Juha Manninen ha escrit: I guess this happens only with KDE 4.10.x. I updated my Mint 14 for KDE 4.10 and the problem may have started then. It is not dependent on Lazarus revision. Can others confirm to have KDE 4.10? kde 4.8.5 in mageia 2. Bye -- Luca Olivetti

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
: (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32 They show in the same console you started Lazarus from. I can confirm that I also get this message Me too. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
Al 13/05/13 14:04, En/na Paul Ishenin ha escrit: 13.05.13, 17:52, Luca Olivetti пишет: Yes, I remembered something similar, that's why I added it. However, even with the default setting (sbgAlways) the menu glyphs aren't shown (glyphs in buttons are OK). Ok. Then check how

[Lazarus] Memory leak in dbgrids?

2013-05-10 Thread Luca Olivetti
TBookarkStr to TBookmark, and dbgrids calls GetBookmark but never calls FreeBookmark (it either discards the bookmark in local functions or assigns nil to it). I'll try calling FreeBookmark and see if the leak goes away. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel

Re: [Lazarus] Memory leak in dbgrids?

2013-05-10 Thread Luca Olivetti
Al 10/05/13 09:36, En/na Luca Olivetti ha escrit: Al 10/05/13 09:13, En/na Luca Olivetti ha escrit: Hello, I'm migrating some programs from lazarus 0.9.30 to lazarus 1.0.8 (well, actually updating and recompiling, there's no need to migrate anything). Heaptrc is showing some memory leaks

  1   2   3   >