[Lazarus] MSSQL howto catch a TMSSQLConnection Error without Messagebox?

2021-01-27 Thread Andreas Frieß via lazarus
No, befor the try is  a ping to test if the server itself is reachable. This is done with a 'ShowOnTop' Form - but not showmodal. It looks like isOk := pingtheserver();  // <-- here is a form with showontop created and destoyed if isOk then begin   try (IsOk);   except   end; end

[Lazarus] MSSQL howto catch a TMSSQLConnection Error without Messagebox?

2021-01-27 Thread Andreas Frieß via lazarus
Hi Michael, no, i did not re-raise there. I want only a silent flag. This should done by the Result:= false in the calling function. regards Andreas Am 27.01.2021 um 12:46 schrieb Michael Van Canneyt: On Wed, 27 Jan 2021, Andreas Frieß via lazarus wrote: On my Raspi/Debian i got on a

[Lazarus] MSSQL howto catch a TMSSQLConnection Error without Messagebox?

2021-01-26 Thread Andreas Frieß via lazarus
On my Raspi/Debian i got on a TMSSQLConnection a messagebox if the server is not reachable. The connection is not my problem, but i am not able to cach this exeption silent without poping up this messagebox. The problem is, the messagebox pops up and want an OK or ABORT. In my code i catch the ex

Re: [Lazarus] fpreport: Rendering Report to Printer did not work on RasPi (arm-linux)

2019-08-13 Thread Andreas Frieß via lazarus
Who is the renderer for printer (gtk2/linux/arm) used in fpreport ? The printer itself is cupsprinters (found in OSPrinters). But i have not the glue which renderer is used, because the output in cupsprinters is postscript. Have somebody a hint for the used renderer for me? Or should i file a bug

[Lazarus] fpreport: Rendering Report to Printer did not work on RasPi (arm-linux)

2019-08-11 Thread Andreas Frieß via lazarus
I have created a report with fpreport (in code) and it works on Windows (32-bit app) with Rendering to LCLCanvas, PDF  and Printer without problems. On a RasPi with rasbian (on Jessy, Wheezy the same) rendering to LCLCanvas and PDF works, but on printer it shows not the text. pictures are correct

Re: [Lazarus] Makefile error or what else?

2019-02-18 Thread Andreas Frieß via lazarus
See https://bugs.freepascal.org/view.php?id=34787 i delete the whole installation and it works. At this time i think i was alone with this issue. But now i see more and more people with the same issue. For a fast fix, delete the extra lines in the makefile. Andreas Joe via lazarus wrote: > Hi,

Re: [Lazarus] windows EStackOverflow if compiled with -WG

2018-07-23 Thread Andreas Frieß via Lazarus
Andreas Frieß via Lazarus wrote: > I make a project according the sample in > http://wiki.freepascal.org/Form_in_DLL > > Compile the programm with -WG activated and started in Commandline > direct, i got a EStackOverflow if i open the form in the dll > With the actual trunk (fpc&Lazarus) i g

[Lazarus] windows EStackOverflow if compiled with -WG

2018-07-20 Thread Andreas Frieß via Lazarus
I make a project according the sample in http://wiki.freepascal.org/Form_in_DLL Compile the programm with -WG activated and started in Commandline direct, i got a EStackOverflow if i open the form in the dll Compile the programm with -WG deactivated and started in Commandline direct, it runs

[Lazarus] Unittesting and find memleaks

2018-06-28 Thread Andreas Frieß via Lazarus
Is it possible to make a heaptrace for a (one) testcase (FPCUnit) only ? Or is there an other good way to test code for memleaks ? Andreas -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem

2018-05-25 Thread Andreas Frieß via Lazarus
Mattias Gaertner via Lazarus wrote: > On Mon, 21 May 2018 21:44:59 +0200 > Andreas Frieß via Lazarus wrote: > > > If someone can backport this please. The fix from Bugreport 0031517 > > to the actual stable or must this a extra feature report ? > > See > https://bugs.freepascal.org/view.php?id

Re: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem

2018-05-21 Thread Andreas Frieß via Lazarus
If someone can backport this please. The fix from Bugreport 0031517 to the actual stable or must this a extra feature report ? Andreas Werner Pamler via Lazarus wrote: > Am 13.05.2018 um 12:00 schrieb zeljko via Lazarus: > > Hi, > > Using trunk lazarus r57911 and fpc-3.0.4 (32 bit), Windows 10.

Re: [Lazarus] Dark themed lazarus

2018-05-04 Thread Andreas Frieß via Lazarus
Maciej Izak via Lazarus wrote: > 2018-04-05 12:16 GMT+02:00 Anthony Walter via Lazarus < > lazarus@lists.lazarus-ide.org>: > > > Next I might tackle the lagginess in drag moving controls on the > > form designer. Does that seem like a laggy problem to anyone else? > > > > Probably you mean : ht

Re: [Lazarus] fpreport designer

2018-02-26 Thread Andreas Frieß via Lazarus
The second bug is in the standalone-designer too. Andreas Am 26.02.2018 um 19:03 schrieb Andreas Frieß via Lazarus: Acknowledge of the two Bugs -> Bug1: The page properties are not displayed in the designer's object inspector -> Bug2: The designer freezes and cannot be closed

Re: [Lazarus] fpreport designer

2018-02-26 Thread Andreas Frieß via Lazarus
Acknowledge of the two Bugs -> Bug1: The page properties are not displayed in the designer's object inspector -> Bug2: The designer freezes and cannot be closed anymore i can reproduce this with actual trunk fpc/ trunk Lazarus. Another goal is, if you install lazideintfreport, the lazarus won

Re: [Lazarus] fpreport designer

2018-02-26 Thread Andreas Frieß via Lazarus
Actual it make IMHO only sense with the actual trunk fpc (and trunk Lazarus). Pls use the standalone designer too, to make a check if the problem is not only in the fp-report component. Andreas Am 25.02.2018 um 20:33 schrieb patspiper via Lazarus: On 25/02/18 21:09, Michael Van Canneyt via L

Re: [Lazarus] OI / App crash - components with published interfaces

2018-02-18 Thread Andreas Frieß via Lazarus
THX for the information Martin, i have changed the line and it looks good. Very good. This code is a prototype for me to inhibt unwanted Ref Counter changes. Am 18.02.2018 um 16:32 schrieb Martin Schreiber via Lazarus: pointer(FObjectHasInterface):= nil; THX Andreas -- _

Re: [Lazarus] OI / App crash - components with published interfaces

2018-02-18 Thread Andreas Frieß via Lazarus
TS(0x38648d8) at uoitest.pas:161 #12 BUFREECLICK(0x38648d8, 0x3865a58) at uoitest.pas:139 --- Am 17.02.2018 um 10:53 schrieb Andreas Frieß via Lazarus: I have an appcrash when i use components with interfaces in the published part. See also Bug 32919. I have now simpilied

[Lazarus] OI / App crash - components with published interfaces

2018-02-17 Thread Andreas Frieß via Lazarus
I have an appcrash when i use components with interfaces in the published part. See also Bug 32919. I have now simpilied the problem and isolated from Lazarus itself. The component is on https://github.com/afriess/LazarusBug0032919 in OITestBasic, together with the testproject shown here. So

Re: [Lazarus] Nested Components in a Form at runtime

2018-02-15 Thread Andreas Frieß via Lazarus
Ondrej Pokorny via Lazarus wrote: > I didn't know you can use the object inspector to inspect > controls/components in runtime. How to enable it? Is this documented > somewhere? > > Ondrej Yes, Lazarus/examples/objectinspetor/ is an example. My tests based on this and mine is here https://gith

[Lazarus] Nested Components in a Form at runtime

2018-02-15 Thread Andreas Frieß via Lazarus
For testing purposes, i want to create a form at runtime with chained panels - to make it simple. I use this code // Create components ATestForm := TForm.Create(nil); ATestForm.Name:= 'Main'; // Create a Panel ATestPanel := TPanel.Create(ATestForm); ATestPanel.Parent:=ATestForm; A

Re: [Lazarus] fpReport - can not render pagefooter

2017-10-01 Thread Andreas Frieß via Lazarus
Done. The FAQ is started. ANdreas Michael Van Canneyt via Lazarus wrote: > > Sure. > > You can add pages to the wiki about fpreport: > > http://wiki.freepascal.org/FPReport > > I suggest adding a new page > > http://wiki.freepascal.org/FPReport_FAQ > > and linking to it from the main page.

Re: [Lazarus] fpReport - can not render pagefooter

2017-09-30 Thread Andreas Frieß via Lazarus
Is it possible to make a FAQ for fpreport ? Regards Andreas Graeme Geldenhuys via Lazarus wrote: > On 2017-09-27 09:38, Andreas Frieß via Lazarus wrote: > > What is my mistake of understanding ? > > You made a couple of mistakes and highlighted a bug in the PDF > exporter. > > Mistakes: > .

Re: [Lazarus] fpReport - can not render pagefooter

2017-09-27 Thread Andreas Frieß via Lazarus
tion is 32470, i will check this and close if running. Andreas Am 27.09.2017 um 12:50 schrieb Graeme Geldenhuys via Lazarus: On 2017-09-27 09:38, Andreas Frieß via Lazarus wrote: What is my mistake of understanding ? You made a couple of mistakes and highlighted a bug in the PDF exporter. Mi

[Lazarus] fpReport -> dll loading Windows

2017-08-21 Thread Andreas Frieß via Lazarus
The loading of the freetype.dll is not optimal under Windows (10). I have inserted the packages for Lazarus for fpReport and after the start i got an erroer because freetype-6.dll could not found (it reside in windows/system32) and the programm should be new installed. I know the solution

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Andreas Frieß via Lazarus
tCache; if (gTTFontCache.Count=0) then// <--- gTTFontCache.ReadStandardFonts;// <--- Because the standardfonts are not read in the designer. Andreas Am 21.08.2017 um 11:58 schrieb Andreas Frieß via Lazarus: At first this should for the visual part (Design

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Andreas Frieß via Lazarus
8-21 10:35, Andreas Frieß via Lazarus wrote: It is possible to use a standard font and give a warning instead of fire an exception. Eg. Font not found, using standardfont instead ? I don't like that. First, how are you going to display the warning? Remember fpReport was designed to

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Andreas Frieß via Lazarus
It is possible to use a standard font and give a warning instead of fire an exception. Eg. Font not found, using standardfont instead ? Andreas Am 21.08.2017 um 11:25 schrieb Graeme Geldenhuys via Lazarus: On 2017-08-21 10:18, Michael Van Canneyt wrote: /usr/local/share/font

[Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Andreas Frieß via Lazarus
I think there ara som issues with the fonts. frmreportdesignermain.pp around line 395 if gTTFontCache.SearchPath.Count=0 then begin {$IFDEF UNIX} gTTFontCache.SearchPath.Add(ExtractFilePath(ParamStr(0))+'../demos/fonts/'); gTTFontCache.SearchPath.Add(GetUserDir + '.fonts/'); gTT

Re: [Lazarus] fpReport released

2017-08-21 Thread Andreas Frieß via Lazarus
Thanks, its true for the app in fpc directory. So i have to look for the Lazarus Demos/Designer too. Andreas Am 21.08.2017 um 08:59 schrieb Michael Van Canneyt via Lazarus: On Mon, 21 Aug 2017, Andreas Frieß via Lazarus wrote: I'm on Win10 Pro/64 1703. The needed fonts are not fou

Re: [Lazarus] fpReport released

2017-08-20 Thread Andreas Frieß via Lazarus
fonts. Regards Andreas Am 21.08.2017 um 01:38 schrieb Graeme Geldenhuys via Lazarus: On 2017-08-20 21:16, Andreas Frieß via Lazarus wrote: The freetype dll searched by the fpreport was freetype-6.dll, but the actual freetype-2.3.5-1-bin.zip has only a freetype6.dll. (Renaming is not a pr

Re: [Lazarus] fpReport released

2017-08-20 Thread Andreas Frieß via Lazarus
Thx Graeme, i some changes in the Lazarus trunk now too. I didnt reconiced this on Lazarus, because i'm actually on the 1.8RC path :-) But i can backport this :-) Sorry for my noise. Andreas Am 20.08.2017 um 22:12 schrieb Graeme Geldenhuys via Lazarus: On 2017-08-20 21:05, Andreas Frie

Re: [Lazarus] fpReport released

2017-08-20 Thread Andreas Frieß via Lazarus
If i want to start the demo in windows, some dll's are missing. The freetype dll searched by the fpreport was freetype-6.dll, but the actual freetype-2.3.5-1-bin.zip has only a freetype6.dll. (Renaming is not a problem for me) Source: http://gnuwin32.sourceforge.net/packages/freetype.htm (Bin

Re: [Lazarus] fpReport released

2017-08-20 Thread Andreas Frieß via Lazarus
Thx Michael & Graeme for the fcl-report. But is there a fcl-report package for Lazarus, because the web-demo asked me for ? Or should be an extra package for Lazarus planned ? Andreas Am 20.08.2017 um 21:16 schrieb Michael Van Canneyt via Lazarus: On Sun, 20 Aug 2017, Michael W. Vogel vi

Re: [Lazarus] Reporting engine - What it's state?

2017-08-19 Thread Andreas Frieß via Lazarus
and the week goes by :-) Any news about the report-engine ? Or had i miss this in the (fpc) trunk ? Andreas Am 12.08.2017 um 11:03 schrieb Michael Van Canneyt via Lazarus: Hi, I will commit the code to FPC svn the coming week. Michael. On Fri, 11 Aug 2017, Andreas Frieß via Lazarus

Re: [Lazarus] Reporting engine - What it's state?

2017-08-11 Thread Andreas Frieß via Lazarus
Hi, pls, where can the actual 'unstable ?' Code found ? fpc trunk, where ? Thanks Andreas Am 24.07.2017 um 08:54 schrieb Michael Van Canneyt via Lazarus: On Mon, 24 Jul 2017, Gabor Boros via Lazarus wrote: Hi All, 2015. 07. 09. 21:45 keltezéssel, Michael Van Canneyt írta: Just an opinion

Re: [Lazarus] Status of namespace

2017-08-10 Thread Andreas Frieß via Lazarus
Hi Fabio, i think, this is the Bug https://bugs.freepascal.org/view.php?id=32247 you mean. It is in also in Lazarus 1.8RC3 with akctual FPC trunk Andreas Am 03.08.2017 um 00:27 schrieb Fabio Luis Girardi via Lazarus: Em 2 de ago de 2017 11:46 AM, "Juha Manninen" mailto:juha.mannine...@gm

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-27 Thread Andreas Frieß via Lazarus
Am 19.05.2017 um 01:30 schrieb Werner Pamler via Lazarus: Am 18.05.2017 um 00:41 schrieb Werner Pamler via Lazarus: Am 17.05.2017 um 23:08 schrieb Andreas Frieß via Lazarus: I see with the last patches something goes wrong after r54880 with frames and grid (specially TsWorkSheetGrid

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Andreas Frieß via Lazarus
I see with the last patches something goes wrong after r54880 with frames and grid (specially TsWorkSheetGrid). Lazarus claims, the is no valid parent and didnot load and crash. It is only happen if you use frames ? The trouble is, i can only shutdown Lazarus with the Processmanger. Win10/64

Re: [Lazarus] Projectgroups in Sourceeditor Toolbar

2017-03-13 Thread Andreas Frieß via Lazarus
THX Mattias. Another Featurerequest, in the Project group windows, can you add the MRU-List "Open recent project groups" too please. Because it is not possible to open Lazarus with a Projectgroup ind winwows, with a simple doublecklick for me. It opens always the file in the editor, but doesn'

[Lazarus] Projectgroups in Sourceeditor Toolbar

2017-03-11 Thread Andreas Frieß via Lazarus
Is there an way to bring the menuentries of the projectgroups in the toolbar of the sourceeditor ? If i go into the 'Toolbar Configuration', i didn't find the entries like 'Open Projectgroup', in the mainmenu it is shown, but not in the editor. Lazarus 1.7 rUnversioned directory FPC 3.1.1 i38

Re: [Lazarus] Error: No Memory left at linking Lazarus with fpc trunk

2017-03-09 Thread Andreas Frieß via Lazarus
Luiz Americo Pereira Camara via Lazarus wrote: > Seems that code typhon fixed it. See entry 16-Nov-2016 ver 5.90 at I looked for it and made a compare. One change is in the pp.pas aroud line 150. Now i patched the actual trunk 35551. Now fpc compiles the 'Big' Lazarus for me. Andreas ==

Re: [Lazarus] Error: No Memory left at linking Lazarus with fpc trunk

2017-03-08 Thread Andreas Frieß via Lazarus
packages in the actual project and i need generics. Can i change the heapsize with-Chx in the fpc.cfg and what is the default heapsize ? Andreas Am 07.03.2017 um 13:37 schrieb Mattias Gaertner via Lazarus: Andreas Frieß via Lazarus hat am 7. März 2017 um 13:12 geschrieben: If i want to

[Lazarus] Error: No Memory left at linking Lazarus with fpc trunk

2017-03-07 Thread Andreas Frieß via Lazarus
If i want to recompile Lazarus with some packages i got the following error. If the fpc link Lazarus, it was running out of memory !? git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@54324 4005530d-fff6-0310-9dd1-cebe43e6787f FPC 3.1.1 i386-win32-win32/win64 with fpc 3.0.2 it works ##

[Lazarus] Generics diffence between Lazarus and Delphi Berlin

2017-02-28 Thread Andreas Frieß via Lazarus
I have found some interesting working Generics construct. I want to translate this code to Lazarus, but there are Generics often used. In Delphi Berlin the following ist working, the inner array of Integer is normally 6 integer long, but once 7 integer and can filled in such way. Is it possible

[Lazarus] TTabSheet extending - where is the editor in TPageControl or a hook

2016-12-29 Thread Andreas Frieß via Lazarus
Hi, i want to extend the TTabSheet to TMyTabSheet, but i didnt find the editor for TPageControl to say not to use TTabSheet. The editor is normaly comming up if you make a rightclick in TPageControl and say, add, insert or move left/right a TTabSheet. I want to change this from TTabSheet to u

[Lazarus] Anchordocking -> CloseAll is hiding the mainform and close all forms

2016-12-27 Thread Andreas Frieß via Lazarus
Hello, i use the anchordocking with manual docking and i see, if i use DockManager.CloseAll ALL forms are closed and the mainform is hidden. Q: Is this expected ? I expect only the docked forms are closed and the mainform wil hold their own state (visible/hidden). Andreas -- _