Re: [Lazarus] Exception handling in Linux?

2018-10-25 Thread leledumbo via Lazarus
> Now when testing I have experienced that Lazarus trows up an exception dialog when code inside such a construct is running The debugger by default catches all exceptions, handled or not, because it catches the exception before your handler (the except block). Configure exceptions to ignore in

Re: [Lazarus] Use /dev/null for stdout

2018-10-25 Thread leledumbo via Lazarus
> I'd need to open both stdout and stderr as /dev/null. Both are represented as System.Text (or ObjPas.TextFile) named System.Output and System.StdErr respectively (There are also System.StdOut and System.ErrOutput as their alias, but it looks like they're not proper alias but rather different

Re: [Lazarus] Remove unmatched vars in published

2018-10-25 Thread Fabio Luis Girardi via Lazarus
Hi Martin! Em qui, 25 de out de 2018 às 14:14, Martin Frb via Lazarus < lazarus@lists.lazarus-ide.org> escreveu: > > > The problem with removing it later, is that the IDE can not know, if you > added any fields yourself. > When I add some field in a published section of a class, I avoid use

Re: [Lazarus] Remove unmatched vars in published

2018-10-25 Thread Martin Frb via Lazarus
On 25/10/2018 19:09, Fabio Luis Girardi via Lazarus wrote: Hi Juha! I haven't a way to reproduce this, yet. Because of this I asked if Lazarus has way to remove unmatched instance class fields when saving the form/datamodule or that can be triggered manually. When I found a way to reproduce

[Lazarus] Exception handling in Linux?

2018-10-25 Thread Bo Berglund via Lazarus
I am working on a port of a Windows Win32 command line program (Delphi 2007) to Linux Ubuntu 18.04 64bit. I am almost done now and my tests show that the basic functionality works as intended. But I am not sure about the exception handling at all... In my code I have many instances of: try

Re: [Lazarus] Remove unmatched vars in published

2018-10-25 Thread Juha Manninen via Lazarus
Fabio Luis Girardi, if there is a systematic way to reproduce the error using the latest Lazarus (trunk or 2.0RC1) then please report in bug tracker. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Remove unmatched vars in published

2018-10-25 Thread Fabio Luis Girardi via Lazarus
Yes, that's right. My coworkers reported that the same occurs when renaming controls/components. It's renamed at LFM file, but not in PAS file. No reported exception when deleting/renaming. Em qui, 25 de out de 2018 às 11:07, Vojtěch Čihák escreveu: > Hi, > > > > do you mean that you add

Re: [Lazarus] Remove unmatched vars in published

2018-10-25 Thread Vojtěch Čihák via Lazarus
Hi,   do you mean that you add control on the form (let's say Button1), then you remove it (in designer) and line "Button1: TButton;" remains in source editor?   V. __ Od: "Fabio Luis Girardi via Lazarus" Komu: "Lazarus mailing list"

[Lazarus] Remove unmatched vars in published

2018-10-25 Thread Fabio Luis Girardi via Lazarus
Hi all! Lazarus has some feature, to remove all unmatched variable names (on published of class, specially on TForm class and it's descendants) that don't have a control or component with the same name? I'm working with big forms (process screens) and my coworkers are deleting some controls, but

Re: [Lazarus] Installed lazarus-ide in Ubuntu18, cannot install package

2018-10-25 Thread Brian via Lazarus
On 10/24/2018 05:42 PM, Juha Manninen via Lazarus wrote: > On Wed, Oct 24, 2018 at 10:16 PM Brian via Lazarus > wrote: >> ... and errors from deep inside code libraries tend to throw me, >> especially when it's object oriented code (yes, I'm that old). > > ValidUTF8String and