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

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 09:16:20 +0300, patspiper wrote: >On 22/06/15 02:00, Bo Berglund wrote: >> >> I just made a first test by adding the object to my main form as a >> private variable. >Which object? Better show the code. Here is the current state of the main form where the object is handled:

Re: [Lazarus] Project defined Macros?

2015-06-22 Thread Michael Schnell
On 06/18/2015 04:43 PM, Juha Manninen wrote: Is it possible that your degenerating mind now confuses "Build modes" with "Additions and Overrides" somehow? You're welcome ;-) Anyway "Additions and Overrides" now has a "Set LCL Widget Type" dropdown box". To select the GUI system you want your p

[Lazarus] ERROR: Unable to load package TEditorToolBarOptions.Load:

2015-06-22 Thread FreeMan
fpc r31144 & lazarus r49402 yosemite x64qt when try builed IDE I get this error. SetPrimaryConfigPath NewValue="/Users/user-name/.lazarus" -> "/Users/user-name/.lazarus" TEditorToolBarOptions.Load: Using old configuration in editortoolbar.xml. $000100233161 $00010007AA94 $00

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

2015-06-22 Thread patspiper
On 22/06/15 11:09, Bo Berglund wrote: On Mon, 22 Jun 2015 09:16:20 +0300, patspiper wrote: On 22/06/15 02:00, Bo Berglund wrote: I just made a first test by adding the object to my main form as a private variable. Which object? Better show the code. Here is the current state of the main for

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

2015-06-22 Thread Giuliano Colla
Il 22/06/2015 10:09, Bo Berglund ha scritto: On Mon, 22 Jun 2015 09:16:20 +0300, patspiper wrote: On 22/06/15 02:00, Bo Berglund wrote: I just made a first test by adding the object to my main form as a private variable. Which object? Better show the code. Here is the current state of the m

Re: [Lazarus] Make table with TDataset structure

2015-06-22 Thread aradeonas
Thank you Marc,very interesting point but now Im talking about INSERT SQL COMMAND. I want to make insert sql command for a table ,for example : INSERT INTO table1(Filed1,Filed2) VALUES(:Filed1,:Filed2); I know its possible because Lazarus data desktop do this but I count find out how and I thought

[Lazarus] Embedded Firebird bundled with OSX application

2015-06-22 Thread Graeme Geldenhuys
Hi, Has anybody here managed to bundle the required Embedded Firebird libraries with an OSX application? If so, do you mind sharing your solution. I am very new to developing applications for OSX, and have been struggling with this problem for a while now. I have looked through the Lazarus Wiki,

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 usern

Re: [Lazarus] Embedded Firebird bundled with OSX application

2015-06-22 Thread FreeMan
Why you want use embeded ? I'm using yosemite and firebird server 2.5.4 I bookmarked this link http://paulbeachsblog.blogspot.com.tr/2012/09/firebird-embedded-on-macosx.html I planned, after finish my project then I'll test this. On 22.06.2015 14:27, Graeme Geldenhuys wrote: Hi, Has anybody her

Re: [Lazarus] ERROR: Unable to load package TEditorToolBarOptions.Load:

2015-06-22 Thread FreeMan
still continue in r49410, juha On 22.06.2015 13:00, FreeMan wrote: fpc r31144 & lazarus r49402 yosemite x64qt when try builed IDE I get this error. SetPrimaryConfigPath NewValue="/Users/user-name/.lazarus" -> "/Users/user-name/.lazarus" TEditorToolBarOptions.Load: Using old configuration in

Re: [Lazarus] Embedded Firebird bundled with OSX application

2015-06-22 Thread Graeme Geldenhuys
On 2015-06-22 12:34, Tony Whyman wrote: > 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. That was my initial thought too... should be similar to Linux. But it ended up not being the case (at least for me

Re: [Lazarus] Embedded Firebird bundled with OSX application

2015-06-22 Thread Graeme Geldenhuys
On 2015-06-22 12:36, FreeMan wrote: > Why you want use embeded ? It is a requirement from my client and the project I'm working on. They want to reduce the installation complexity of the application. Every extra installation requirement, is a requirement too much. I've read many blog posts from P

Re: [Lazarus] Embedded Firebird bundled with OSX application

2015-06-22 Thread FreeMan
I'll pleasure if share results. I wrote, its my in plan, thank you On 22.06.2015 14:58, Graeme Geldenhuys wrote: It is a requirement from my client and the project I'm working on. They want to reduce the installation complexity of the application. Every extra installation requirement, is a requi

Re: [Lazarus] ERROR: Unable to load package TEditorToolBarOptions.Load:

2015-06-22 Thread Juha Manninen
On Mon, Jun 22, 2015 at 2:44 PM, FreeMan wrote: > still continue in r49410, juha Just do a clean build and it is solved. This is generic advice for any problem you encounter after updating trunk. At least I often get problems which are then solved by doing a clean build. Juha -- ___

Re: [Lazarus] ERROR: Unable to load package TEditorToolBarOptions.Load:

2015-06-22 Thread FreeMan
I'm always do that. I remove all sources (fpc & lazarus) and remove added my components libs folders as well then re download fpc then make&build, then lazarus too. I did this tree times. error is still continue. I remove "editortoolbar.xml" and retry lazbuild, error execption. On 22.06.2015

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

2015-06-22 Thread Sven Barth
Am 22.06.2015 12:31 schrieb "patspiper" : > >> >> Question: >> Could it be that Lazarus is anyway compiling for a 64 bit application >> since it is installed on a 64 bit Windows 7 laptop? >> I just assumed that the main application would be 32 bit as is the >> case for Delphi > > Lazarus/fpc is

Re: [Lazarus] Project defined Macros?

2015-06-22 Thread Juha Manninen
On Mon, Jun 22, 2015 at 12:39 PM, Michael Schnell wrote: > We can add another "target" Override but here is no selection for the > different Targets (Archs and OSes) we might want to compile for. (Even > though if the IDE runs in Linux you can select "win32" as "LCL Widget Type" > in the dropdown

Re: [Lazarus] Project defined Macros?

2015-06-22 Thread Michael Schnell
On 06/22/2015 02:38 PM, Juha Manninen wrote: Still I think you confused "Build modes" with "Additions and Overrides". They are very different things. A build mode contains all compiler options, including the "Additions and Overrides" part. Of course I do know this after I looked it up to prepare

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

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 12:39:18 +0200, Giuliano Colla wrote: >Both Win32 and Win64 generate the same compiler option(-WG) > >In the same configuration page you should also pick up the right Target >CPU family: i386 as opposed to X86_64, in order to generate a 32bit >application. This will require

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

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 13:31:29 +0300, patspiper wrote: >The facts: >- You have 64 bit Windows >- You have Delphi 32 bit compiler that produces 32 bit executables >- The Safenet driver installed on 64 bit Windows works with the Delphi >compiled project Correct summary! >> >> Question: >> Could i

Re: [Lazarus] ERROR: Unable to load package TEditorToolBarOptions.Load:

2015-06-22 Thread Juha Manninen
On Mon, Jun 22, 2015 at 3:34 PM, FreeMan wrote: > I'm always do that. I remove all sources (fpc & lazarus) and remove added my > components libs folders as well then re download fpc then make&build, then > lazarus too. I did this tree times. > error is still continue. > I remove "editortoolbar.xml

Re: [Lazarus] ERROR: Unable to load package TEditorToolBarOptions.Load:

2015-06-22 Thread Juha Manninen
A solution if you want to use LazBuild: Remove the entry for EditorToolbar package in miscellaneousoptions.xml, in section StaticAutoInstallPackages. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.o

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

2015-06-22 Thread patspiper
On 22/06/15 15:55, Bo Berglund wrote: Question: Could it be that Lazarus is anyway compiling for a 64 bit application since it is installed on a 64 bit Windows 7 laptop? I just assumed that the main application would be 32 bit as is the case for Delphi Lazarus/fpc is 64 bit as it has been in

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

2015-06-22 Thread patspiper
On 22/06/15 15:51, Bo Berglund wrote: On Mon, 22 Jun 2015 12:39:18 +0200, Giuliano Colla wrote: Both Win32 and Win64 generate the same compiler option(-WG) In the same configuration page you should also pick up the right Target CPU family: i386 as opposed to X86_64, in order to generate a 32b

Re: [Lazarus] ERROR: Unable to load package TEditorToolBarOptions.Load:

2015-06-22 Thread Juha Manninen
Ok, I added a dummy package to replace the removed package in r49411. This should prevent compilation errors. Please test. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 16:48:14 +0300, patspiper wrote: >I assume the compiler you installed produces 64 bit executables by >default. The Win32 GUI (-GW) description in the IDE is not exact. As per >fpc help: >-WG: Specify graphic type application (EMX, OS/2, Windows) > >Anyway, you can check any

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

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 17:01:45 +0300, patspiper wrote: >Check the bitness of the produced executable. > Did a check with the CygWin file command: D:\Engineering\Projects\Lazarus\LazDongle>file dongletest.exe dongletest.exe: PE32 executable (GUI) Intel 80386, for MS Windows Seems like my Lazarus pr

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

2015-06-22 Thread patspiper
On 22/06/15 17:34, Bo Berglund wrote: But your best bet is to install the 32 bit version and try it yourself. That is what I have already... I am out of ideas for now. You can ask for help on the fpc mailing list. I propose you prepare a minimum working example in an lpr file (no units, just

Re: [Lazarus] ERROR: Unable to load package TEditorToolBarOptions.Load:

2015-06-22 Thread FreeMan
On 22.06.2015 17:22, Juha Manninen wrote: Ok, I added a dummy package to replace the removed package in r49411. This should prevent compilation errors. Please test. Juha Sorry I been late, in r49410: I make lazarus then run IDE, then from menu ,Tools--> Configure "build lazarus" after two erro

Re: [Lazarus] ERROR: Unable to load package TEditorToolBarOptions.Load:

2015-06-22 Thread Juha Manninen
On Mon, Jun 22, 2015 at 6:06 PM, FreeMan wrote: > in r49410: I make lazarus then run IDE, then from menu ,Tools--> Configure > "build lazarus" after two error messages, I build IDE and now lazbuild work > without error, I don't know how and why!!! I think no need to dummy > package. > and I'm upd

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

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 17:47:15 +0300, patspiper wrote: >On 22/06/15 17:34, Bo Berglund wrote: >>> But your best bet is to install the 32 bit version and try it yourself. >> That is what I have already... >> >I am out of ideas for now. > >You can ask for help on the fpc mailing list. I propose you p

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

2015-06-22 Thread luiz americo pereira camara
In my experince sigsegv occurs mostly when a field or variable is accessed before initialization. Try to set a breakpoint in dongle.initkey call. And evaluate the dongle field (open debugger evaluate window) Look for dongle or one of the tsentinel fields being nil Liiz Em 22/06/2015 05:10, "Bo

Re: [Lazarus] Make table with TDataset structure

2015-06-22 Thread Marc Santhoff
On Mo, 2015-06-22 at 04:11 -0700, aradeonas wrote: > Thank you Marc,very interesting point but now Im talking about INSERT > SQL COMMAND. Sorry, I read too fast over your mail. > I want to make insert sql command for a table ,for example : > INSERT INTO table1(Filed1,Filed2) VALUES(:Filed1,:Filed

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

2015-06-22 Thread Bo Berglund
On Mon, 22 Jun 2015 13:29:07 -0300, luiz americo pereira camara wrote: >In my experince sigsegv occurs mostly when a field or variable is accessed >before initialization. > >Try to set a breakpoint in dongle.initkey call. And evaluate the dongle >field (open debugger evaluate window) > >Look for

Re: [Lazarus] Embedded Firebird bundled with OSX application

2015-06-22 Thread Dmitry Boyarintsev
On Mon, Jun 22, 2015 at 7:54 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > That was my initial thought too... should be similar to Linux. But it > ended up not being the case (at least for me). > For example: > * Libraries need to be included inside the application bundle. I'm

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

2015-06-22 Thread luiz americo pereira camara
In the breakpoint do a step into (f7) and ser the exact line that crashes Luiz Em 22/06/2015 14:03, "Bo Berglund" escreveu: > On Mon, 22 Jun 2015 13:29:07 -0300, luiz americo pereira camara > wrote: > > >In my experince sigsegv occurs mostly when a field or variable is accessed > >before initia

Re: [Lazarus] Make table with TDataset structure

2015-06-22 Thread aradeonas
Easy solution,Thank you very much Marc. But I was strugling to how use TFPDDSQLEngine as Michael said,it implements all we need but how use it for a current table for making insert,update,generate sql code is a question for me that maybe Michael can tell us. Regards, Ara -- http://www.fastmail.

Re: [Lazarus] Make table with TDataset structure

2015-06-22 Thread Michael Van Canneyt
On Mon, 22 Jun 2015, aradeonas wrote: Easy solution,Thank you very much Marc. But I was strugling to how use TFPDDSQLEngine as Michael said,it implements all we need but how use it for a current table for making insert,update,generate sql code is a question for me that maybe Michael can tell u

Re: [Lazarus] Make table with TDataset structure

2015-06-22 Thread aradeonas
Vary good. Please let me know when it ready. Regards, Ara -- http://www.fastmail.com - Send your email first class -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus