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

2015-04-11 Thread brian
On Sat, 11 Apr 2015 11:48:57 -0400, you wrote: I moved checking for the file and then creating the database if it didn't already exist from the OnShow event of the tab to the last possible moment in the processing, and that seems to have sorted it. I don't understand why, but I'm not complaining.

Re: [Lazarus] PascalScript glyphs patch - related to revision 48726 by Martin

2015-04-11 Thread Martin Frb
On 11/04/2015 22:50, Juha Manninen wrote: On Sat, Apr 11, 2015 at 11:54 PM, Martin Frb wrote: Hm maybe we should look into fixing this upstream. If the icon is missing, then I am sure a new icon will be accepted. Not sure about bmp vs png. Dont know the benefits, or implications. Especially up

Re: [Lazarus] PascalScript glyphs patch - related to revision 48726 by Martin

2015-04-11 Thread Juha Manninen
On Sat, Apr 11, 2015 at 11:54 PM, Martin Frb wrote: > Hm maybe we should look into fixing this upstream. > > If the icon is missing, then I am sure a new icon will be accepted. Not sure > about bmp vs png. Dont know the benefits, or implications. Especially > upstream needs to work with Delphi too

Re: [Lazarus] PascalScript glyphs patch - related to revision 48726 by Martin

2015-04-11 Thread Martin Frb
On 11/04/2015 18:58, Sandro Cumerlato wrote: About revision 48726 http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&revision=48726 Please review attached ZIP file content: - added new glyph Glyps\TPSCustomPlugin.png in PNG format (with transparency) - all other glyphs con

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

2015-04-11 Thread SPRL AFOR
At the moment you use components from the DataModule, are you sure it has been instantiated and thet you call a null object ? It happens quite often that I forget to create the DataModule BEFORE using it. Antonio. Le 11/04/2 015 17:48, brian a écrit : Hi all, I'm writing an application which

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

2015-04-11 Thread brian
On Sat, 11 Apr 2015 18:01:13 +0200, Luca Olivetti wrote: >El 11/04/15 a les 17:48, brian ha escrit: > >> My problem is a simple one to describe - the program compiles >> correctly, but the moment I try to do anything with the objects in the >> data module, I get an immediate 'external SIGSEGV'. Wh

Re: [Lazarus] lazbuild 2x quiet

2015-04-11 Thread FreeMan
On 11.04.2015 16:07, Mattias Gaertner wrote: ./lazbuild --quiet --quiet ... Note: Linker warnings cannot be hidden -vw-. And code can enable warnings via directives. Mattias are you mean "./lazbuild --quiet --quiet ..." write "--quiet" twice ? I'm not talk about linker warnings SetPrimaryCon

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

2015-04-11 Thread Luca Olivetti
El 11/04/15 a les 17:48, brian ha escrit: > My problem is a simple one to describe - the program compiles > correctly, but the moment I try to do anything with the objects in the > data module, I get an immediate 'external SIGSEGV'. When I say do > anything with them, this is as simple as adding a

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

2015-04-11 Thread brian
Hi all, I'm writing an application which uses Firebird embedded. My setup is currently Lazarus 1.2.6 with FPC 2.6.4, but I have the 1.4 RC3 files to install if anybody thinks that should make a difference. I'm using the AMD64 version of Lazarus and Debian 7.6 multihome, with i386 architecture al

Re: [Lazarus] SQLDB: how to use TSQLTransaction

2015-04-11 Thread SPRL AFOR
Le 11/04/2015 16:29, Xiangrong Fang a écrit : 2015-04-11 15:41 GMT+08:00 SPRL AFOR >: Michael's comments do not need further explanation If you want an Sql statement be executed immediately attach an TSqlTransaction to a DB component, attach the TSqlQuery

Re: [Lazarus] SQLDB: how to use TSQLTransaction

2015-04-11 Thread Michael Van Canneyt
On Sat, 11 Apr 2015, Xiangrong Fang wrote: 2015-04-11 15:41 GMT+08:00 SPRL AFOR : Michael's comments do not need further explanation If you want an Sql statement be executed immediately attach an TSqlTransaction to a DB component, attach the TSqlQuery  to the transaction and en

Re: [Lazarus] SQLDB: how to use TSQLTransaction

2015-04-11 Thread Xiangrong Fang
2015-04-11 15:41 GMT+08:00 SPRL AFOR : Michael's comments do not need further explanation > > If you want an Sql statement be executed immediately attach an > TSqlTransaction to a DB component, attach the TSqlQuery to the transaction > and enclose it between a StartTransaction and a Commit. > > T

Re: [Lazarus] lazbuild 2x quiet

2015-04-11 Thread Mattias Gaertner
On Sat, 11 Apr 2015 15:24:47 +0300 FreeMan wrote: >[...] > This is my lazbuild commandline, and it not quit for me. I mean I saw > warnings and some hints. And not changed for me. just less hints. > "-g -gl -vn-h-i-w" this params added in "Stored in IDE" too. > lazbuild --quiet --max-process-cou

Re: [Lazarus] lazbuild 2x quiet

2015-04-11 Thread FreeMan
Thank you, lazarus r48722 fixed about subject: this is my make lazarus commandline make --quiet clean all PREFIX=/opt/lazarus/ CPU_TARGET=x86_64 OS_TARGET=darwin LCL_PLATFORM=qt OPT=-k'-framework' -k'ApplicationServices' -dUSE_QT_45 -dQT_NATIVE_DIALOGS -g -gl -vn-h-i-w more hints and warnings

Re: [Lazarus] lazbuild 2x quiet

2015-04-11 Thread coppolastudio
+1 Michael Van Canneyt ha scritto: > > >On Sat, 11 Apr 2015, Mattias Gaertner wrote: > >> On Sat, 11 Apr 2015 12:45:44 +0300 >> FreeMan wrote: >> >>> [...] >>> Program received signal SIGSEGV, Segmentation fault. >>> 0x00010017d994 in CREATE (this=0x101900330, vmt=0x1) at >>> environmentopt

Re: [Lazarus] lazbuild 2x quiet

2015-04-11 Thread Michael Van Canneyt
On Sat, 11 Apr 2015, Mattias Gaertner wrote: On Sat, 11 Apr 2015 12:45:44 +0300 FreeMan wrote: [...] Program received signal SIGSEGV, Segmentation fault. 0x00010017d994 in CREATE (this=0x101900330, vmt=0x1) at environmentopts.pp:982 982 fExternalUserTools:=ExternalUserToolsClass.Cr

Re: [Lazarus] lazbuild 2x quiet

2015-04-11 Thread Mattias Gaertner
On Sat, 11 Apr 2015 12:45:44 +0300 FreeMan wrote: >[...] > Program received signal SIGSEGV, Segmentation fault. > 0x00010017d994 in CREATE (this=0x101900330, vmt=0x1) at > environmentopts.pp:982 > 982 fExternalUserTools:=ExternalUserToolsClass.Create; My fault. Sorry. Fixed. Mattias

Re: [Lazarus] lazbuild 2x quiet

2015-04-11 Thread FreeMan
On 11.04.2015 11:39, FreeMan wrote: Thank you, but in terminal I get this error. fpc r30539 lazarus r48719 yosemite x64 qt SetPrimaryConfigPath NewValue="/Users/freeman35/.lazarus" -> "/Users/freeman35/.lazarus" An unhandled exception occurred at $00010017D994: EAccessViolation: Access vio

Re: [Lazarus] lazbuild 2x quiet

2015-04-11 Thread FreeMan
from IDE "Configure "Build lazarus"..." I get this error. lcl.pas(10,3) Fatal: Cannot find AllLCLIntfUnits used by LCL. Check search path of package LCL, try a clean rebuild, check implementation uses sections.. On 11.04.2015 11:26, FreeMan wrote: On 10.04.2015 22:58, Mattias Gaertner wrote:

Re: [Lazarus] lazbuild doesn't increment build number | issue plus patch

2015-04-11 Thread Sandro Cumerlato
Issue opened: http://bugs.freepascal.org/view.php?id=27820 Thank you in advance. Sandro Cumerlato On 9 Apr 2015 22:01, "Sandro Cumerlato" wrote: > Hello, > lazbuild doesn't increment build number even if auto increment is enabled > in Project Options. > > Please review attached patch and appl

Re: [Lazarus] lazbuild 2x quiet

2015-04-11 Thread FreeMan
On 10.04.2015 22:58, Mattias Gaertner wrote: Hi, I extended lazbuild. When you pass -q or --quiet two times lazbuild now passes -vw-n-h-i-l-d-u-t-p-c-x- to the compiler. Mattias Thank you, but in terminal I get this error. fpc r30539 lazarus r48719 yosemite x64 qt SetPrimaryConfigPath NewValu

Re: [Lazarus] SQLDB: how to use TSQLTransaction

2015-04-11 Thread SPRL AFOR
Le 11/04/2015 03:53, Xiangrong Fang a écrit : The transaction process depends upon the DBMS used. In a general way, all DBMS execute SQL statement under the control of a transaction. Some of the DBMS (MS SQL Server) use to have "automatic" transaction control as default and some others (Firebi

Re: [Lazarus] SQLDB: how to use TSQLTransaction

2015-04-11 Thread Michael Van Canneyt
On Sat, 11 Apr 2015, Xiangrong Fang wrote: Hi All, Sorry that I don't know if SQLDB belongs to fpc or lazarus, so I posted to both lists. I am confused about the use of transaction in SQLDB. I tried to use in in my non-gui app. Here is the code: function TPortfolio.ConfirmTransaction(id: