[lazarus] Lazarus Jobs,vacancies
Hi All I wish to know whether asking for lazarus developers are coming up. Does anybody ask for telecommuting jobs in sites like Elance.com? regards Nataraj begin:vcard fn:http://www.gsis.ac.in n:S Narayan;Nataraj org:Good Shepherd International School;Software adr:Niligiris, ;;M.Palada;Ootacamund;TN;643004;INDIA email;internet:[EMAIL PROTECTED] title:Project Coordinator tel;work:0423 2550371 - 307 x-mozilla-html:TRUE url:http://www.gsis.ac.in version:2.1 end:vcard
Re: [lazarus] Compile Error for TiOPF components
Hi Graeme The point is that I havent till now developed any code using 3 tier approach. Even during my Delphi days. I remember having used 'Raize Business' components of Ray Canopa during my Delphi 2 days. It had a Business Table compo that maps to TTable. Is anybody using actual object model in Lazarus ? I mean, classes for say 'Purchase Orders' - which will have the modules for persistance like TQuery /TTable ,defined inside the PO class? I hear that biggest issue is to map object model to relational model. Which tool is the best to be used with lazarus/fpc? regards Nataraj ? Graeme Geldenhuys wrote: Hi Nataraj, Unfortunately I don't use the tiOPF GUI controls. I tend to stick with the standard controls and use the Model-GUI-Mediator pattern to make them object-aware. See the Demos/GenericMediatingViews directory for demos. To get back to your problem. Boguslaw Brandys converted quite a few of the tiOPF GUI controls to Lazarus. Not sure if he did tiVirtualTrees though - so that could be the problem. If you want to do the conversion, please go ahead and I will submit the patch. As a side note: Most of tiOPF GUI controls are composite controls. By that I mean it is a few standard controls rolled into one and made object-aware. Unfortunately I cannot comment on the tiVirtualTrees because I don't even know the standard VirtualTree component. :-) Sorry I can't be of more help. Regards, - Graeme - On 1/12/07, Nataraj S Narayan <[EMAIL PROTECTED]> wrote: Hi I am getting about 50 compile errors starting with the following when compiling tiOPFGUIDsgn.lpk :- /root/lazarus/tiOPF2/Source/GUI/tiVirtualTrees.pas(145,20) Error: Identifier not found "WM_APP" what could be wrong? regards Nataraj begin:vcard fn:http://www.gsis.ac.in n:S Narayan;Nataraj org:Good Shepherd International School;Software adr:Niligiris, ;;M.Palada;Ootacamund;TN;643004;INDIA email;internet:[EMAIL PROTECTED] title:Project Coordinator tel;work:0423 2550371 - 307 x-mozilla-html:TRUE url:http://www.gsis.ac.in version:2.1 end:vcard
Re: [lazarus] New to Lazarus General Question
- Original Message - From: "Mattias Gaertner" <[EMAIL PROTECTED]> To: Sent: Saturday, January 13, 2007 1:32 AM Subject: Re: [lazarus] New to Lazarus General Question On Fri, 12 Jan 2007 23:09:48 +0100 Vincent Snijders <[EMAIL PROTECTED]> wrote: Darius Blaszijk schreef: > I suppose you get the error when compiling a package. To solve > this, add $(LazarusDir)\lcl\units\$(TargetCPU)-$(TargetOS)\ to the > search path. To make it more clear: Adding the above path is not enough. It is missing the path to the widgetset. Instead add the LCL as described below. Indeed I forgot to mention the widgetset path. Until now I was using this approach but adding LCL as dependency is cleaner, and better. Thanks both for pointing this out. Darius > Click on "compiler options" and on the tab "Paths" add the > searchpath to "Other unit files". Or even better add the LCL as a required package. And another hint: http://wiki.lazarus.freepascal.org/Lazarus_Documentation#Coming_from_Delphi Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] New to Lazarus General Question
On Fri, 12 Jan 2007 23:09:48 +0100 Vincent Snijders <[EMAIL PROTECTED]> wrote: > Darius Blaszijk schreef: > > I suppose you get the error when compiling a package. To solve > > this, add $(LazarusDir)\lcl\units\$(TargetCPU)-$(TargetOS)\ to the > > search path. To make it more clear: Adding the above path is not enough. It is missing the path to the widgetset. Instead add the LCL as described below. > > Click on "compiler options" and on the tab "Paths" add the > > searchpath to "Other unit files". > > Or even better add the LCL as a required package. And another hint: http://wiki.lazarus.freepascal.org/Lazarus_Documentation#Coming_from_Delphi Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPC Incompatible types error
On 1/12/07, Mohamed A. Hammady <[EMAIL PROTECTED]> wrote: Thx Ido... U r absolutly correct... But why delphi overcomed this "error"... Add on the beginning of the unit: {$ifdef fpc} {$mode delphi} {$endif} And see if fpc compiles that first code. The default mode for fpc is objfpc, which has more strict sintax then delphi. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] FPC Incompatible types error
Thx Ido... U r absolutly correct... But why delphi overcomed this "error"... This code complied under D6!! Any way, many thanks.. Best regards, M. Hammady -Original Message- From: ik [mailto:[EMAIL PROTECTED] Sent: Saturday, January 13, 2007 2:46 AM To: lazarus@miraclec.com Subject: Re: [lazarus] FPC Incompatible types error On 1/13/07, Mohamed A. Hammady <[EMAIL PROTECTED]> wrote: > Hi all, > > I have the following types declaration > > type > LongIntRA = array [1..1] of LongInt; > LongIntp = ^LongIntRA; > . > . > . > > Procedure test; > var >lLongRA: LongIntp; Pos: Longint; > Begin > . > . > . > lLongRA[1] := Pos; > . > . > . > End; > > When I complie, I got the following error > Error: Incompatible types: got "LongInt" expected "LongIntRA" > > > This code was accepted by D6... Any advise? And why? You are trying to write to a memory address (that was allocated at position 1) an integer content instead of pointer address. So you need to do the following: iLongRA^[1] := Pos; And then you'll be able to store on cell 1 of the *array* the content of Pos. > > Thanks & best regards, > M. Hammady > Ido -- http://ik.homelinux.org/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPC Incompatible types error
On 1/13/07, Mohamed A. Hammady <[EMAIL PROTECTED]> wrote: Hi all, I have the following types declaration type LongIntRA = array [1..1] of LongInt; LongIntp = ^LongIntRA; . . . Procedure test; var lLongRA: LongIntp; Pos: Longint; Begin . . . lLongRA[1] := Pos; . . . End; When I complie, I got the following error Error: Incompatible types: got "LongInt" expected "LongIntRA" This code was accepted by D6... Any advise? And why? You are trying to write to a memory address (that was allocated at position 1) an integer content instead of pointer address. So you need to do the following: iLongRA^[1] := Pos; And then you'll be able to store on cell 1 of the *array* the content of Pos. Thanks & best regards, M. Hammady Ido -- http://ik.homelinux.org/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] FPC Incompatible types error
Hi all, I have the following types declaration type LongIntRA = array [1..1] of LongInt; LongIntp = ^LongIntRA; . . . Procedure test; var lLongRA: LongIntp; Pos: Longint; Begin . . . lLongRA[1] := Pos; . . . End; When I complie, I got the following error Error: Incompatible types: got "LongInt" expected "LongIntRA" This code was accepted by D6... Any advise? And why? Thanks & best regards, M. Hammady _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] New to Lazarus General Question
Darius Blaszijk schreef: I suppose you get the error when compiling a package. To solve this, add $(LazarusDir)\lcl\units\$(TargetCPU)-$(TargetOS)\ to the search path. Click on "compiler options" and on the tab "Paths" add the searchpath to "Other unit files". Or even better add the LCL as a required package. Darius - Original Message - From: "Mohamed A. Hammady" <[EMAIL PROTECTED]> To: Sent: Friday, January 12, 2007 10:47 PM Subject: RE: [lazarus] New to Lazarus General Question Hi All, The FPC gives me error { Can't find unit 'Graphics' } I believe that this is a standard component... Can any one help me how to add the correct path for this unit to the FCP? _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] New to Lazarus General Question
I suppose you get the error when compiling a package. To solve this, add $(LazarusDir)\lcl\units\$(TargetCPU)-$(TargetOS)\ to the search path. Click on "compiler options" and on the tab "Paths" add the searchpath to "Other unit files". Darius - Original Message - From: "Mohamed A. Hammady" <[EMAIL PROTECTED]> To: Sent: Friday, January 12, 2007 10:47 PM Subject: RE: [lazarus] New to Lazarus General Question Hi All, The FPC gives me error { Can't find unit 'Graphics' } I believe that this is a standard component... Can any one help me how to add the correct path for this unit to the FCP? Thx in advance... Best regards, _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] New to Lazarus General Question
Hi All, The FPC gives me error { Can't find unit 'Graphics' } I believe that this is a standard component... Can any one help me how to add the correct path for this unit to the FCP? Thx in advance... Best regards, _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] New to Lazarus General Question
Hi All, I'm new to Lazarus, and I'm quite excited by the work you have already done / doing... My 1st question is, I have a VCLs (full source) created using D6, and all of them using standard Delphi classes & components. Can I use them in Lazarus? and how? Typically you don't need to do much unless you are using very specific windows code (especially if you want the code to be multi platform). To show the components in the componentbar you need to create a package and recompile lazarus. More is described here: http://wiki.lazarus.freepascal.org/Lazarus_Packages. Perhaps this page helps too: http://wiki.lazarus.freepascal.org/Lazarus_For_Delphi_Users. Darius Thanks in advance Best regards, M. Hammady _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] New to Lazarus General Question
Hi All, I'm new to Lazarus, and I'm quite excited by the work you have already done / doing... My 1st question is, I have a VCLs (full source) created using D6, and all of them using standard Delphi classes & components. Can I use them in Lazarus? and how? Thanks in advance Best regards, M. Hammady
Re: [lazarus] Exception when running Lazarus for QT
On 1/12/07, ik <[EMAIL PROTECTED]> wrote: I compiled lazarus for QT from revision 10433, and when I start Lazarus, it have an exception: Don´t compile lazarus for Qt, it won´t work yet. Compile only LCL -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Exception when running Lazarus for QT
Hi, I compiled lazarus for QT from revision 10433, and when I start Lazarus, it have an exception: An unhandled exception occurred at $00498D48 : ERangeError : Range check error $00498D48 INTERNALINIT, line 850 of graphtype.pp $00498E6D GRAPHTYPE_init, line 861 of graphtype.pp $00415458 $00405E05 main, of startlazarus.lpr The problem is on the line: MissingBits[Prec, HighValue] or (Bits shl (CurShift - DShift)) Ido -- http://ik.homelinux.org/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] [patch] - Grid Semaphor example
--- Graeme Geldenhuys <[EMAIL PROTECTED]> escribió: > Hi, > > I resized and tidied up the example form for the Grid Semaphore. > Many > of the buttons where to small for the button text. > > Patch needs to be applied from the root Lazarus directory. > > -- > Graeme Geldenhuys > Thanks, Applied. Jesus Reyes A. ___ Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Form streaming error
I'm porting a delphi app to lazarus. But when I try to run the app it keeps crashing with the below message. I suspect the LRS file is corrupt, but I have no idea how to check or better fix this. I tried removing the LRS file several times and save the project which recreates the LRS file. But that does not help unfortunately. Does anyone have an idea? I'm using lazarus 0.9.20 and fpc 2.0.4. Darius [InitComponent] TMainForm True [InitComponent] TForm True [InitComponent] CompResource found for TMainForm Form Stream "TMainForm" Signature=TPF0 Form streaming "TMainForm" error: Class " " not found [FORMS.PP] ExceptionOccurred Sender=EAccessViolation Exception=Access violation Stack trace: $00453A59 TCUSTOMACTION__SETCHECKED, line 102 of ./include/customaction.inc $0040E189 TMAINFORM__SETMODE, line 856 of main.pas $00412F2A TMAINFORM__FORMCREATE, line 1955 of main.pas $00404DB9 TCUSTOMFORM__DOCREATE, line 614 of ./include/customform.inc $0040656C TCUSTOMFORM__CREATE, line 1297 of ./include/customform.inc $0040C0D2 TAPPLICATION__CREATEFORM, line 1523 of ./include/application.inc $004010AB main, line 32 of LpSolveIDE.lpr TApplication.HandleException Access violation Stack trace: $00453A59 TCUSTOMACTION__SETCHECKED, line 102 of ./include/customaction.inc $0040E189 TMAINFORM__SETMODE, line 856 of main.pas $00412F2A TMAINFORM__FORMCREATE, line 1955 of main.pas $00404DB9 TCUSTOMFORM__DOCREATE, line 614 of ./include/customform.inc $0040656C TCUSTOMFORM__CREATE, line 1297 of ./include/customform.inc $0040C0D2 TAPPLICATION__CREATEFORM, line 1523 of ./include/application.inc $004010AB main, line 32 of LpSolveIDE.lpr [InitComponent] TPromptDialog True [InitComponent] TForm True Runtime error 217 at $0055FA22 $0055FA22 DOUNHANDLEDEXCEPTION, line 156 of C:/lazarus/source/fpcbuild/2.0.4/fpcsrc/rtl/inc/except.inc $0055B80C fpc_reraise, line 266 of C:/lazarus/source/fpcbuild/2.0.4/fpcsrc/rtl/inc/except.inc $00401134 main, line 26 of LpSolveIDE.lpr $0055B59E EXE_ENTRY, line 420 of system.pp _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] How to access an array in assembler
Hi @ all, i'm trying to write some code in assembler. But i cannot access an 2 dimensional array in Lazarus. I tried followring code to get the values of the array: asm movl X, %eax movl Y, %ebx movl FracArray(%eax,%ebx), __RESULT end; where Frac array is an dynamic-array. FracArray : array of array of LongInt; I am using x86_64... Regards Tanila _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TSemaphorGrid in lastest Lazarus (svn)
On 1/11/07, Jesus Reyes <[EMAIL PROTECTED]> wrote: Some forms were designed before 2.1.1 when readonly properties used to be stored in lfm files. In revision 10426 I removed these properties form some lfm files including the semaphore grid example. Please try again. Thanks, it's fixed now! > Just to confirm - Custom drawing in the TStringGrid is supported on > Linux (gtk) and Windows? yes it's supported, now it works even under QT (readonly thought, and Excellent, thanks. Custom drawing howto is yet to be written, will try to find some time next weekend. Is the Semaphor Grid just an example of custom drawing on a TStringGrid, plus a few other examples like sorting, etc? I don't actually understand what the TSemaphorGrid is used for? -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] [patch] - Grid Semaphor example
Hi, I resized and tidied up the example form for the Grid Semaphore. Many of the buttons where to small for the button text. Patch needs to be applied from the root Lazarus directory. -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' Index: examples/grid_semaphor/example/unit1.lfm === --- examples/grid_semaphor/example/unit1.lfm (revision 10432) +++ examples/grid_semaphor/example/unit1.lfm (working copy) @@ -1,10 +1,10 @@ object Form1: TForm1 Left = 183 - Height = 416 + Height = 423 Top = 115 Width = 590 HorzScrollBar.Page = 589 - VertScrollBar.Page = 415 + VertScrollBar.Page = 422 ActiveControl = SemaphorGrid1 Caption = 'Try SemaphorGrid' OnCreate = Form1Create @@ -12,17 +12,17 @@ Left = 8 Height = 25 Top = 232 -Width = 112 +Width = 144 BorderSpacing.InnerBorder = 4 Caption = 'Toggle Semaphor' OnClick = Button1Click TabOrder = 1 end object Button2: TButton -Left = 128 +Left = 155 Height = 25 Top = 232 -Width = 126 +Width = 163 BorderSpacing.InnerBorder = 4 Caption = 'Next Semafore Style' OnClick = Button2Click @@ -32,57 +32,57 @@ Left = 8 Height = 25 Top = 264 -Width = 114 +Width = 124 BorderSpacing.InnerBorder = 4 Caption = 'Next Alignment' OnClick = Button3Click TabOrder = 3 end object Button4: TButton -Left = 331 +Left = 464 Height = 25 -Top = 264 -Width = 75 +Top = 70 +Width = 111 BorderSpacing.InnerBorder = 4 Caption = 'Close' OnClick = Button4Click TabOrder = 4 end object Button5: TButton -Left = 128 +Left = 464 Height = 25 -Top = 264 -Width = 88 +Top = 16 +Width = 111 BorderSpacing.InnerBorder = 4 Caption = 'Save to File' OnClick = Button5Click TabOrder = 5 end object Button6: TButton -Left = 227 +Left = 464 Height = 25 -Top = 264 -Width = 96 +Top = 43 +Width = 111 BorderSpacing.InnerBorder = 4 Caption = 'Load from File' OnClick = Button6Click TabOrder = 6 end object Button7: TButton -Left = 264 -Height = 17 +Left = 327 +Height = 24 Top = 232 -Width = 67 +Width = 87 BorderSpacing.InnerBorder = 4 Caption = 'AutoWidth' OnClick = Button7Click TabOrder = 7 end object Button8: TButton -Left = 334 -Height = 17 +Left = 417 +Height = 24 Top = 232 -Width = 72 +Width = 90 BorderSpacing.InnerBorder = 4 Caption = 'AutoHeight' OnClick = Button8Click @@ -90,37 +90,37 @@ end object Button9: TButton Left = 176 -Height = 20 -Top = 167 -Width = 75 +Height = 26 +Top = 165 +Width = 100 BorderSpacing.InnerBorder = 4 Caption = 'Sort Cols[4]' OnClick = Button9Click TabOrder = 9 end object RadioButton1: TRadioButton -Left = 259 -Height = 20 -Top = 164 -Width = 84 +Left = 286 +Height = 24 +Top = 165 +Width = 99 Caption = 'Ascending' Checked = True State = cbChecked TabOrder = 10 end object RadioButton2: TRadioButton -Left = 259 -Height = 20 -Top = 185 -Width = 91 +Left = 286 +Height = 24 +Top = 196 +Width = 109 Caption = 'Descending' TabOrder = 11 end object Button10: TButton Left = 8 -Height = 25 -Top = 164 -Width = 142 +Height = 26 +Top = 165 +Width = 144 BorderSpacing.InnerBorder = 4 Caption = 'Hide/Show Cols[1]' OnClick = Button10Click @@ -130,7 +130,7 @@ Left = 8 Height = 25 Top = 196 -Width = 44 +Width = 47 BorderSpacing.InnerBorder = 4 Caption = 'Clear' OnClick = Button11Click @@ -138,45 +138,45 @@ end object CheckBox1: TCheckBox Left = 60 -Height = 20 +Height = 24 Top = 196 -Width = 84 +Width = 98 Caption = 'OnlyValue' TabOrder = 14 end object Button12: TButton Left = 176 -Height = 18 -Top = 190 -Width = 75 +Height = 23 +Top = 196 +Width = 100 BorderSpacing.InnerBorder = 4 Caption = 'Sort Cols[1]' OnClick = Button12Click TabOrder = 15 end object ToggleBox1: TToggleBox -Left = 384 -Height = 13 -Top = 167 -Width = 71 +Left = 429 +Height = 26 +Top = 165 +Width = 102 Caption = 'UnEditable' OnClick = ToggleBox1Click TabOrder = 16 end object CheckBox2: TCheckBox -Left = 384 -Height = 20 -Top = 203 -Width = 83 +Left = 428 +Height = 24 +Top = 196 +Width = 98 Caption = 'Only Float' OnClick = CheckBox2Click TabOrder = 17 end object Button13: TButton -Left = 408 -Height = 17 +Left = 510 +Height = 24 Top = 232 -Width = 72 +Width = 71
Re: [lazarus] Re: Messages window showing wrong unit with error (part 2)
That does seem to be the same as my problem, thanks. Graeme. On 1/12/07, Funky Beast <[EMAIL PROTECTED]> wrote: If its fpc2.1.1, it may be related to this bug: http://www.freepascal.org/mantis/view.php?id=7883 Regards, Funky Beast -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Messages window showing wrong unit with error (part 2)
I think the mailing list rejected part 1. I sent it again with one attachment only. I believe my problem is the same as bug 7883 only my line numbers and column numbers are correct, but the unit isn't. I compiled FPC 2.0.5 now and recompiled Lazarus. I'll double check the problem again using that version of FPC. Graeme. On 1/12/07, Vincent Snijders <[EMAIL PROTECTED]> wrote: Graeme Geldenhuys schreef: > Here is the last screenshot mentioned in the "part 1" email. I did not see part 1 (yet), but I see this is http://www.freepascal.org/mantis/view.php?id=7883 Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Fwd: Messages window showing wrong unit with error (part 1)
Here is part 1 again. I think Lazarus mailing list rejected part 1 for being to big. It would be nice if the mailing list could notify us if that happens! Also instead of sending a image of the uses clause of my .lpr file, in included it here as text. -- cut uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces// this includes the LCL widgetset ,Forms ,GuiTestRunner ,tiLog ,tiLogReg ,tiOIDGUID // registers GUID's as OIDs ,tiQueryFBL ,M2Application ,M2Browser ,Model ,Visitors ,SlideParser ,m2TestFramework ,CentreTests ,Language_test ,M2Browser_test ,SlideParser_test ,NodeData_test ,Levels_test ,module_test ,ModuleFlyweightFactory_test ,Learner_test ,TreeBuildVisitorHTML_test ,SystemParameter_test ,CsvParser_Tests ,Views_test ; - end --- Graeme. -- Forwarded message -- From: Graeme Geldenhuys <[EMAIL PROTECTED]> Date: Jan 12, 2007 9:41 AM Subject: Messages window showing wrong unit with error (part 1) To: lazarus@miraclec.com Hi, I have noticed a while back that the Lazarus Messages window doesn't show the correct unit when referring to a compiler error. The line number and column number is correct, but the unit isn't. Now I'm not sure if this is Lazarus (latest svn) or FPC 2.1.1 (lastest svn). I tend to update both once a week at the same time. I'm running on Linux x86. I haven't updated or changed GDB in the last year so I don't believe it is GDB. To try and give you an example. The Lazarus Messages window will show a unit and line number with error. If I click on that error it takes me to that unit, but the error position might be in a comment block or a part in a unit that doesn't even contain code. I have been trying to figure out a pattern. It seems that the unit that actually has the problem is the one that appears infront of the unit Lazarus mentioned in some uses clause. Normally the .lpr file for small projects, but this is a problem for larger project where all units are not mentioned in the .lpr file. See attached screenshots for an example. (I split the screenshots over two emails) Notice the unit mentioned in the Messages window. Also notice the cursor position in the editor. The mentioned unit is wrong, but the position is correct. Also notice the order of the units in the uses clause. The problem was in "NodeData_test", but Lazarus mentioned "SlideParser_test" which occurs before "NodeData_test" in the uses clause. Luckily I compile often, so the problem unit is normally open in my editor so is easy to find. Anybody else experiencing this? This problem doesn't occur 100% of the time but I would guess around 70% of the time. -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' wrong_unit.png Description: PNG image
Re: [lazarus] Messages window showing wrong unit with error (part 2)
Graeme Geldenhuys schreef: Here is the last screenshot mentioned in the "part 1" email. I did not see part 1 (yet), but I see this is http://www.freepascal.org/mantis/view.php?id=7883 Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Re: Messages window showing wrong unit with error (part 2)
Graeme Geldenhuys wrote: Here is the last screenshot mentioned in the "part 1" email. If its fpc2.1.1, it may be related to this bug: http://www.freepascal.org/mantis/view.php?id=7883 Regards, Funky Beast _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives