[Lazarus] Lazarus on Solaris 10

2011-07-02 Thread Ludo Brands
Got Lazarus up and running on Solaris 10 9-10 (x86) with the gtk2 widgetset. Gdb 6.8. It's not perfect ( a SIGSEGV in Tproject.UpdateUnitComponentDependencies when closing a project) but it runs and debugs programs correctly. I'm actually running lazarus from inside the lazarus IDE to debug the SI

Re: [Lazarus] Lazarus on Solaris 10

2011-07-02 Thread michael . vancanneyt
On Sat, 2 Jul 2011, Ludo Brands wrote: Got Lazarus up and running on Solaris 10 9-10 (x86) with the gtk2 widgetset. Gdb 6.8. It's not perfect ( a SIGSEGV in Tproject.UpdateUnitComponentDependencies when closing a project) but it runs and debugs programs correctly. I'm actually running lazarus

Re: [Lazarus] Lazarus on Solaris 10

2011-07-02 Thread Mark Morgan Lloyd
Ludo Brands wrote: Got Lazarus up and running on Solaris 10 9-10 (x86) with the gtk2 widgetset. Gdb 6.8. It's not perfect ( a SIGSEGV in Tproject.UpdateUnitComponentDependencies when closing a project) but it runs and debugs programs correctly. I'm actually running lazarus from inside the lazar

[Lazarus] How to create a chart in code?

2011-07-02 Thread Felipe Monteiro de Carvalho
Hello, I am trying to use TAChart, so I dropped TChart in my form and I added some code to draw some lines: var LineSeries: TLineSeries; i, j: Integer; begin for i := 0 to Length(Model.PoliticalParties) - 1 do begin LineSeries := TLineSeries.Create(Application); for j := 0 to Leng

Re: [Lazarus] How to create a chart in code?

2011-07-02 Thread Felipe Monteiro de Carvalho
Ok, I found the answer myself =) I should use TChart.AddSeries to add the series not TChart.Series.Lists.Add... -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

Re: [Lazarus] How to create a chart in code?

2011-07-02 Thread Alexander Klenin
2011/7/3 Felipe Monteiro de Carvalho : > Ok, I found the answer myself =) > > I should use TChart.AddSeries to add the series not TChart.Series.Lists.Add... Yes. Unfortunately, FPList does not support any notification mechanism, and its Add method is not virtual. -- Alexander S. Klenin -- _

Re: [Lazarus] How to create a chart in code?

2011-07-02 Thread Florian Klämpfl
Am 02.07.2011 16:18, schrieb Alexander Klenin: > 2011/7/3 Felipe Monteiro de Carvalho : >> Ok, I found the answer myself =) >> >> I should use TChart.AddSeries to add the series not >> TChart.Series.Lists.Add... > > Yes. Unfortunately, FPList does not support any notification mechanism, > and its

[Lazarus] RE : Lazarus on Solaris 10

2011-07-02 Thread Ludo Brands
> /Very/ well done :-) Please do write it up, particularly if > you have a > record of what libraries you had to pull in (SFW or whatever). > This is the procedure to get lazarus trunk and fpc trunk up and running starting from a clean system (adapt to your processor, I'm on x86): -Get and in

Re: [Lazarus] How to create a chart in code?

2011-07-02 Thread Sven Barth
On 02.07.2011 16:22, Florian Klämpfl wrote: Am 02.07.2011 16:18, schrieb Alexander Klenin: 2011/7/3 Felipe Monteiro de Carvalho: Ok, I found the answer myself =) I should use TChart.AddSeries to add the series not TChart.Series.Lists.Add... Yes. Unfortunately, FPList does not support any not

[Lazarus] FPC_REQUIRES_PROPER_ALIGNMENT defined on Solaris causes crash in lazarus

2011-07-02 Thread Ludo Brands
Found the cause of the crash of the IDE on Solaris x86 when closing a project: in procedure Search in TProject.UpdateUnitComponentDependencies (ide/project.pp) some pointer arithmetic is used assuming TTypeData is packed. This is not the case for solaris x86. Snippet: PropInfo:=PPropInfo(PByte(@T

[Lazarus] RE : FPC_REQUIRES_PROPER_ALIGNMENT defined on Solaris causescrash in lazarus

2011-07-02 Thread Ludo Brands
> Found the cause of the crash of the IDE on Solaris x86 when closing a > project: in procedure Search in > TProject.UpdateUnitComponentDependencies > (ide/project.pp) some pointer arithmetic is used assuming > TTypeData is packed. This is not the case for solaris x86. To be more precise TProp

Re: [Lazarus] RE : FPC_REQUIRES_PROPER_ALIGNMENT defined on Solaris causescrash in lazarus

2011-07-02 Thread Sven Barth
On 02.07.2011 19:45, Ludo Brands wrote: Found the cause of the crash of the IDE on Solaris x86 when closing a project: in procedure Search in TProject.UpdateUnitComponentDependencies (ide/project.pp) some pointer arithmetic is used assuming TTypeData is packed. This is not the case for solaris

[Lazarus] RE : RE : FPC_REQUIRES_PROPER_ALIGNMENT defined on Solaris causescrash in lazarus

2011-07-02 Thread Ludo Brands
> > The define FPC_REQUIRES_PROPER_ALIGNMENT and the types TTypeData and > TPropData are definitely FPC and not Lazarus, so you should > report it as > a FPC bug. > But lazarus is assuming they are packed... Rtl/objpas/typinfo.pp contains some helper functions to get PropInfo from Typeinf

Re: [Lazarus] RE : FPC_REQUIRES_PROPER_ALIGNMENT defined on Solaris causescrash in lazarus

2011-07-02 Thread Felipe Monteiro de Carvalho
On Sat, Jul 2, 2011 at 7:54 PM, Sven Barth wrote: > The define FPC_REQUIRES_PROPER_ALIGNMENT and the types TTypeData and > TPropData are definitely FPC and not Lazarus, so you should report it as a > FPC bug. To me the problem is clearly in Lazarus. -- Felipe Monteiro de Carvalho -- __

[Lazarus] Fixes and issues for Indy 10.2.0.3 on Debian/Linux (Lazarus 0.9.30, FPC 2.4.2) on Lazarus Forum.

2011-07-02 Thread Joshua Lim
Hi, I'm starting this thread on Lazarus forum to report issues and also suggested fixes my team has made for Indy 10.2.0.3 on Debian/Linux (Lazarus 0.9.30, FPC 2.4.2.) while working for my projects. Link - http://forum.lazarus.freepascal

[Lazarus] RE : RE : RE : FPC_REQUIRES_PROPER_ALIGNMENT defined onSolaris causescrash in lazarus

2011-07-02 Thread Ludo Brands
> Rtl/objpas/typinfo.pp contains some helper functions to get > PropInfo from > Typeinfo. They are using constructs like > PPropInfo(aligntoptr(pointer(@Result^.Name)+byte(Result^.Name[ > 0])+1));. > Shouldn't Lazarus do the same? > I'm working on a patch that uses GetPropList instead of walk

Re: [Lazarus] RE : Lazarus on Solaris 10

2011-07-02 Thread Mark Morgan Lloyd
Ludo Brands wrote: /Very/ well done :-) Please do write it up, particularly if you have a record of what libraries you had to pull in (SFW or whatever). This is the procedure to get lazarus trunk and fpc trunk up and running starting from a clean system (adapt to your processor, I'm on x86):

Re: [Lazarus] RE : FPC_REQUIRES_PROPER_ALIGNMENT defined on Solaris causescrash in lazarus

2011-07-02 Thread Mark Morgan Lloyd
Felipe Monteiro de Carvalho wrote: On Sat, Jul 2, 2011 at 7:54 PM, Sven Barth wrote: The define FPC_REQUIRES_PROPER_ALIGNMENT and the types TTypeData and TPropData are definitely FPC and not Lazarus, so you should report it as a FPC bug. To me the problem is clearly in Lazarus. I wonder if

Re: [Lazarus] RE : FPC_REQUIRES_PROPER_ALIGNMENT defined on Solaris causescrash in lazarus

2011-07-02 Thread Sven Barth
On 02.07.2011 20:12, Felipe Monteiro de Carvalho wrote: On Sat, Jul 2, 2011 at 7:54 PM, Sven Barth wrote: The define FPC_REQUIRES_PROPER_ALIGNMENT and the types TTypeData and TPropData are definitely FPC and not Lazarus, so you should report it as a FPC bug. To me the problem is clearly in La

Re: [Lazarus] RE : FPC_REQUIRES_PROPER_ALIGNMENT defined on Solaris causescrash in lazarus

2011-07-02 Thread Sven Barth
On 02.07.2011 22:52, Mark Morgan Lloyd wrote: Felipe Monteiro de Carvalho wrote: On Sat, Jul 2, 2011 at 7:54 PM, Sven Barth wrote: The define FPC_REQUIRES_PROPER_ALIGNMENT and the types TTypeData and TPropData are definitely FPC and not Lazarus, so you should report it as a FPC bug. To me th

Re: [Lazarus] TStringGrid - ColResize on FixedCols (or Freeze Pane on ordinary columns)

2011-07-02 Thread Jesus Reyes
--- El vie 1-jul-11, Alexsander Rosa escribió: De: Alexsander Rosa Asunto: Re: [Lazarus] TStringGrid - ColResize on FixedCols (or Freeze Pane on ordinary columns) A: "Lazarus mailing list" Fecha: viernes, 1 de julio de 2011, 7:44 "Freeze pane" is an expression from Excel spreadsheet: you "f

[Lazarus] RE : RE : FPC_REQUIRES_PROPER_ALIGNMENT defined on Solariscausescrash in lazarus

2011-07-02 Thread Ludo Brands
> I wonder if this is related to the problems I've been experiencing on > SPARC and ARM (both Linux)? Bug 0019109. > Hadn't seen that bug. The backtrace is identical to the one I'm seeing. Working on a patch. Ludo -- ___ Lazarus mailing list Lazarus