[Lazarus] latest revision breaks editor features!

2008-07-28 Thread Graeme Geldenhuys
Hi,

I just got a svn update (v0.9.25 r15897M i386-linux-gtk) to test bug
#11745. The latest revision broke the following editor features.

*  The editor gutter is not visible any more. I can enable it in the
Editor Options and the preview window shows it, but when I click OK,
nothing changes in the actual editor. Going back to Editor Options,
the 'visible gutter' in unchecked again.

* Right margin is not visible any more.  It is checked in the Editor
Options, but has no affect on the actual right margin.  What is
strange, is that checking/unchecking the 'Visible right margin' is
that it toggles the 'procedure divider' lines and not the right margin
line in the editor preview window.  It has no affect in the actual
editor window.



Regards,
 - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus Printer Components are giving Compilation Error .

2008-07-28 Thread Mehmet Erol Sanliturk


Dear Sirs ,




The following actions is giving the following message
within the Lazarus Messages window :

C:\lazarus\components\printers\win32\winutilprn.pas(353)
Error: Can't create archive file: lib\i386-win32\win32\libimpwinutilprn.a

C:\lazarus\components\printers\win32\winutilprn.pas(353)
Fatal: There were 1 errors compiling module, stopping



 From Lazarus IDE , from Project menu , New Project is selected .

Onto Form1 of the project1 ,

(A)

the PrinterSetupDialog component added
( no any other Components ) .

 From Lazarus IDE , Run menu , Quick Compile is selected .



(B)

the PrinterSetupDialog component is removed from the Form1 and
the PrintDialog component added
( no any other Components ) .

 From Lazarus IDE , Run menu , Quick Compile is selected .


(C)

the PrintDialog component is removed from the Form1 and
the PageSetupDialog component added
( no any other Components ) .

 From Lazarus IDE , Run menu , Quick Compile is selected .


-

 From Lazarus IDE , Help menu , About Lazarus dialog :

  Version : 0.9.25 beta
  Date: 2008-07-16
   
  FPC Version : 2.2.2
  SVN Revision : 15790
  i386-win-win32/win64

--


Thank you very much ,

Mehmet Erol Sanliturk

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] End of File character in .LPI and source files .

2008-07-28 Thread Mattias GĂ€rtner
Zitat von Mehmet Erol Sanliturk [EMAIL PROTECTED]:



 Dear Sirs ,


 When a project1.lpi file is edited by a text editor
 and the text editor inserts an End of File character ( Char ( 26 ) )
 at the end of the *.XML file ,
 the Lazarus is giving an error message :

 Unable the read the project info file
 C:\...\project1.lpi

Fixed in r15903.


 When this character is removed , and
 the Unit1.pas is edited with the same text editor
 and the End of File character is appended at
 the end of the file ,

 the Lazarus is giving the following message :

 File C:\...\Unit1.pas does not look like a text file
 Open it anyway ?

Fixed in r15904.


 Buttons : Ok
   Abort
   Ignore


 When Ok is clicked , the Lazarus is loading
 the Unit1.pas with the End of File character
 correctly .


 The Delphi compiler is loading all of the files
 without any warning .

 HTML browsers ( such as Firefox , Opera , and ... ) are loading
 XML and HTML files with the End of File character correctly and
 without any warning .


 It is my opinion that error message for the *.LPI file ,
 and warning message about other source files are unnecessary .

 The End of File character may be ignored by adding a
 case selection part for Char ( 26 ) into file reading procedures
 to simply ignore this character .

 Some text editors were appending many End of File characters
 to fill the last written record up to 128 characters .
 Therefore it is not necessary to count or check
 multiplicity of that character .


 Or , at least , error message about *.LPI file ( or *.XML files )
 may be made like the message about source files .


Mattias

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Call Stack

2008-07-28 Thread Damien Gerard

I use the lastest snapshots of Lazarus (on WinXP for this case).
When my program crashes,  I have a nice Call stack from GDB in the  
appropriated window.
The only annoying thing is that this list be emptied once the program  
is stopped.

I think it would better that this list be emptied only when the  
program is launched.


--
Damien Gerard
[EMAIL PROTECTED]

Si ces robots s'humanisaient, inversement les ĂȘtres humains se  
robotiseraient-ils ?









___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] handy svn update script

2008-07-28 Thread Henry Vermaak
2008/7/28 Graeme Geldenhuys [EMAIL PROTECTED]:
 Hi,

 Below is a svn update script for *nix based systems.  I often want to
 check the logs after I did a update, to see what changed. I then sit
 with the problem, that I can't remember the revision I upgraded from.

i often use svn log -r head:base to see if i really want to update and rebuild.

henry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] unable to rebuild lazarus

2008-07-28 Thread Bob K.
Still the same problem.


--
From: Martin Friebe [EMAIL PROTECTED]
Sent: Sunday, July 27, 2008 1:17 PM
To: General mailing list lazarus@lazarus.freepascal.org
Subject: Re: [Lazarus] unable to rebuild lazarus

 Hi Bob,

 Lazarus use GDB (from the mingw project) for windows. Unfortunately I
 have not yet found a realty bug-free version of GDB.

 I would advice to:
 a) use the reset debugger entry from the run menu. (especially if
 you get error msgs running an app the 2nd time)
 b) Check with the task manager for any gdb processes, that are left
 over. (That could also have cause your files to be locked)



 Best Regards
 Martin



 Bob K. wrote:
 Mattais,

 I deleted the exe file, then selected Run.  The project recompiled
 successfully, but now it says (debugging...) and is not doing anything 
 else.

 bob k.

 --
 From: Mattias Gaertner [EMAIL PROTECTED]
 Sent: Saturday, July 26, 2008 1:46 PM
 To: lazarus@lazarus.freepascal.org
 Subject: Re: [Lazarus] unable to rebuild lazarus


 On Sat, 26 Jul 2008 13:21:55 -0400
 Bob K. [EMAIL PROTECTED] wrote:


 Compiled with -vu -vt options:

 rakphoto.pas(53,61) Hint: Parameter Field not used
 rakphoto.pas(54,7) Hint: Parameter AFont not used
 rakphoto.pas(54,25) Hint: Parameter Background not used
 rakphoto.pas(54,49) Hint: Parameter SortMarker not used
 rakphoto.pas(55,7) Hint: Parameter IsDown not used
 rakphoto.pas(10,11) Hint: Unit rxlookup not used in rakphoto
 rakphoto.pas(10,21) Hint: Unit rxdbcomb not used in rakphoto
 rakphoto.pas(10,30) Hint: Unit rxmemds not used in rakphoto
 rakphotography.lpr(17,1) Error: Can't create object file:
 rakphotography.exe
 rakphotography.lpr(17,1) Fatal: Can't create
 executable rakphotography.exe

 Sorry. You misunderstood me.
 To find the error 'unit interfaces not found' you should compile with
 -vt -vu.

 The can not create object files means for example: disk full, no write
 permissions, output directory does not exist or output file is locked.
 Delete the old exe before compiling.

 Mattias
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus



 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus 


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] handy svn update script

2008-07-28 Thread Graeme Geldenhuys
On Mon, Jul 28, 2008 at 3:31 PM, Henry Vermaak [EMAIL PROTECTED] wrote:

 i often use svn log -r head:base to see if i really want to update and 
 rebuild.

That is handy, yes.  Unfortunately I often need to upgrade to the
latest (even if I don't want to), so I can test a bugfix etc... And
afterwards revert to my prior revision or stay with the current one if
all checks out ok.

Lazarus is such a case in point. I often upgrade to test a bugfix,
then revert back to something more stable for my development work.


Regards,
 - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] handy svn update script

2008-07-28 Thread Graeme Geldenhuys
On Mon, Jul 28, 2008 at 3:27 PM, Henry Vermaak [EMAIL PROTECTED] wrote:

 you can drop the grep and use:

 svn info | sed -n 's/^Revision: //p'


Thanks!  :-)



Regards,
 - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] unable to rebuild lazarus

2008-07-28 Thread Martin Friebe
Hi Bob,

I understand this as follows:
- Lazarus compiles, and a new exe is generated.
- the exe can be started from windows explorer, and works
   if your exe doesn't start from the win explorer neither, the below 
dbg questions are irrelevant.
- the exe does *not* open in a shell = it's linked as a win32-gui-app 
(compiler-options/linking)

1) What is the debugger optins (environment menu) setup on your lazarus?
 type should be Gnu debugger, no ssh
 path must point to a valid gdb.exe

2) What version of GDB?

3) If you open view menu/debug windows/debug output can you copy 
the content ?


Best Regards
Martin

Bob K. wrote:
 Still the same problem.


 --
 From: Martin Friebe [EMAIL PROTECTED]
 Sent: Sunday, July 27, 2008 1:17 PM
 To: General mailing list lazarus@lazarus.freepascal.org
 Subject: Re: [Lazarus] unable to rebuild lazarus

   
 Hi Bob,

 Lazarus use GDB (from the mingw project) for windows. Unfortunately I
 have not yet found a realty bug-free version of GDB.

 I would advice to:
 a) use the reset debugger entry from the run menu. (especially if
 you get error msgs running an app the 2nd time)
 b) Check with the task manager for any gdb processes, that are left
 over. (That could also have cause your files to be locked)



 Best Regards
 Martin



 Bob K. wrote:
 
 Mattais,

 I deleted the exe file, then selected Run.  The project recompiled
 successfully, but now it says (debugging...) and is not doing anything 
 else.

 bob k.

 --
 From: Mattias Gaertner [EMAIL PROTECTED]
 Sent: Saturday, July 26, 2008 1:46 PM
 To: lazarus@lazarus.freepascal.org
 Subject: Re: [Lazarus] unable to rebuild lazarus


   
 On Sat, 26 Jul 2008 13:21:55 -0400
 Bob K. [EMAIL PROTECTED] wrote:


 
 Compiled with -vu -vt options:

 rakphoto.pas(53,61) Hint: Parameter Field not used
 rakphoto.pas(54,7) Hint: Parameter AFont not used
 rakphoto.pas(54,25) Hint: Parameter Background not used
 rakphoto.pas(54,49) Hint: Parameter SortMarker not used
 rakphoto.pas(55,7) Hint: Parameter IsDown not used
 rakphoto.pas(10,11) Hint: Unit rxlookup not used in rakphoto
 rakphoto.pas(10,21) Hint: Unit rxdbcomb not used in rakphoto
 rakphoto.pas(10,30) Hint: Unit rxmemds not used in rakphoto
 rakphotography.lpr(17,1) Error: Can't create object file:
 rakphotography.exe
 rakphotography.lpr(17,1) Fatal: Can't create
 executable rakphotography.exe

   
 Sorry. You misunderstood me.
 To find the error 'unit interfaces not found' you should compile with
 -vt -vu.

 The can not create object files means for example: disk full, no write
 permissions, output directory does not exist or output file is locked.
 Delete the old exe before compiling.

 Mattias
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

 
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus 
 


 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] unable to rebuild lazarus

2008-07-28 Thread Bob K.
Hi Martin,

1. lazarus/mingw/bin/gdb.exe
2. I'm unable to find the version of gdb.exe
3. there is nothing in the debug output window

the exe will not run from windows explorer.

I'm running Windows Vista.

--
From: Martin Friebe [EMAIL PROTECTED]
Sent: Monday, July 28, 2008 10:49 AM
To: General mailing list lazarus@lazarus.freepascal.org
Subject: Re: [Lazarus] unable to rebuild lazarus

 Hi Bob,

 I understand this as follows:
 - Lazarus compiles, and a new exe is generated.
 - the exe can be started from windows explorer, and works
   if your exe doesn't start from the win explorer neither, the below
 dbg questions are irrelevant.
 - the exe does *not* open in a shell = it's linked as a win32-gui-app
 (compiler-options/linking)

 1) What is the debugger optins (environment menu) setup on your lazarus?
 type should be Gnu debugger, no ssh
 path must point to a valid gdb.exe

 2) What version of GDB?

 3) If you open view menu/debug windows/debug output can you copy
 the content ?


 Best Regards
 Martin

 Bob K. wrote:
 Still the same problem.


 --
 From: Martin Friebe [EMAIL PROTECTED]
 Sent: Sunday, July 27, 2008 1:17 PM
 To: General mailing list lazarus@lazarus.freepascal.org
 Subject: Re: [Lazarus] unable to rebuild lazarus


 Hi Bob,

 Lazarus use GDB (from the mingw project) for windows. Unfortunately I
 have not yet found a realty bug-free version of GDB.

 I would advice to:
 a) use the reset debugger entry from the run menu. (especially if
 you get error msgs running an app the 2nd time)
 b) Check with the task manager for any gdb processes, that are left
 over. (That could also have cause your files to be locked)



 Best Regards
 Martin



 Bob K. wrote:

 Mattais,

 I deleted the exe file, then selected Run.  The project recompiled
 successfully, but now it says (debugging...) and is not doing anything
 else.

 bob k.

 --
 From: Mattias Gaertner [EMAIL PROTECTED]
 Sent: Saturday, July 26, 2008 1:46 PM
 To: lazarus@lazarus.freepascal.org
 Subject: Re: [Lazarus] unable to rebuild lazarus



 On Sat, 26 Jul 2008 13:21:55 -0400
 Bob K. [EMAIL PROTECTED] wrote:



 Compiled with -vu -vt options:

 rakphoto.pas(53,61) Hint: Parameter Field not used
 rakphoto.pas(54,7) Hint: Parameter AFont not used
 rakphoto.pas(54,25) Hint: Parameter Background not used
 rakphoto.pas(54,49) Hint: Parameter SortMarker not used
 rakphoto.pas(55,7) Hint: Parameter IsDown not used
 rakphoto.pas(10,11) Hint: Unit rxlookup not used in rakphoto
 rakphoto.pas(10,21) Hint: Unit rxdbcomb not used in rakphoto
 rakphoto.pas(10,30) Hint: Unit rxmemds not used in rakphoto
 rakphotography.lpr(17,1) Error: Can't create object file:
 rakphotography.exe
 rakphotography.lpr(17,1) Fatal: Can't create
 executable rakphotography.exe


 Sorry. You misunderstood me.
 To find the error 'unit interfaces not found' you should compile with
 -vt -vu.

 The can not create object files means for example: disk full, no write
 permissions, output directory does not exist or output file is locked.
 Delete the old exe before compiling.

 Mattias
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus



 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus 


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] unable to rebuild lazarus

2008-07-28 Thread Martin Friebe

 the exe will not run from windows explorer.
Ah ok, so it's not a debugger problem. Does the above mean:
1- Windows says it is not a valid executable? = probably best to go to 
the fpc mailing list
2- Window claims you haven't got permission to run it?
3- Windows doesn't say anything

 -- And just to be on the save side, compiling a simple new project 
with a form, does that get you a working executable? --

Also worth checking in the compiler option, that you selected to produce 
a windows option, and for the correct cpu Best to reset all settings 
to their default.
Remove all optimizations / Enable All range, Stack etc checking. / 
Remove using a manifest

In case 3:

It looks like your exe either goes into an endless loop (check the 
process list/task manager), or crashes/exits immediately at startup.
 -Was it imported into lazarus, from Delphi or some other tool?
 -Does it use special libs that are not part of lazarus, freepascal, 
could they have initialization code?

In any case it will be hard to find, since you can't debug it from 
inside Lazarus (unless you are a GDB expert and can use GDB standalone).

You could try to remove features from the app, until you get a working 
executable. Then add them again, and see which one breaks it... But it's 
a lot of work, and no promise it will lead anywhere.


Best Regards
Martin.

Sorry if this isn't of much help, but I am purely guessing here. Good luck.


Bob K. wrote:
 Hi Martin,

 1. lazarus/mingw/bin/gdb.exe
 2. I'm unable to find the version of gdb.exe
 3. there is nothing in the debug output window

 the exe will not run from windows explorer.

 I'm running Windows Vista.

 --
 From: Martin Friebe [EMAIL PROTECTED]
 Sent: Monday, July 28, 2008 10:49 AM
 To: General mailing list lazarus@lazarus.freepascal.org
 Subject: Re: [Lazarus] unable to rebuild lazarus

   
 Hi Bob,

 I understand this as follows:
 - Lazarus compiles, and a new exe is generated.
 - the exe can be started from windows explorer, and works
   if your exe doesn't start from the win explorer neither, the below
 dbg questions are irrelevant.
 - the exe does *not* open in a shell = it's linked as a win32-gui-app
 (compiler-options/linking)

 1) What is the debugger optins (environment menu) setup on your lazarus?
 type should be Gnu debugger, no ssh
 path must point to a valid gdb.exe

 2) What version of GDB?

 3) If you open view menu/debug windows/debug output can you copy
 the content ?


 Best Regards
 Martin

 Bob K. wrote:
 
 Still the same problem.


 --
 From: Martin Friebe [EMAIL PROTECTED]
 Sent: Sunday, July 27, 2008 1:17 PM
 To: General mailing list lazarus@lazarus.freepascal.org
 Subject: Re: [Lazarus] unable to rebuild lazarus


   
 Hi Bob,

 Lazarus use GDB (from the mingw project) for windows. Unfortunately I
 have not yet found a realty bug-free version of GDB.

 I would advice to:
 a) use the reset debugger entry from the run menu. (especially if
 you get error msgs running an app the 2nd time)
 b) Check with the task manager for any gdb processes, that are left
 over. (That could also have cause your files to be locked)



 Best Regards
 Martin



 Bob K. wrote:

 
 Mattais,

 I deleted the exe file, then selected Run.  The project recompiled
 successfully, but now it says (debugging...) and is not doing anything
 else.

 bob k.

 --
 From: Mattias Gaertner [EMAIL PROTECTED]
 Sent: Saturday, July 26, 2008 1:46 PM
 To: lazarus@lazarus.freepascal.org
 Subject: Re: [Lazarus] unable to rebuild lazarus



   
 On Sat, 26 Jul 2008 13:21:55 -0400
 Bob K. [EMAIL PROTECTED] wrote:



 
 Compiled with -vu -vt options:

 rakphoto.pas(53,61) Hint: Parameter Field not used
 rakphoto.pas(54,7) Hint: Parameter AFont not used
 rakphoto.pas(54,25) Hint: Parameter Background not used
 rakphoto.pas(54,49) Hint: Parameter SortMarker not used
 rakphoto.pas(55,7) Hint: Parameter IsDown not used
 rakphoto.pas(10,11) Hint: Unit rxlookup not used in rakphoto
 rakphoto.pas(10,21) Hint: Unit rxdbcomb not used in rakphoto
 rakphoto.pas(10,30) Hint: Unit rxmemds not used in rakphoto
 rakphotography.lpr(17,1) Error: Can't create object file:
 rakphotography.exe
 rakphotography.lpr(17,1) Fatal: Can't create
 executable rakphotography.exe


   
 Sorry. You misunderstood me.
 To find the error 'unit interfaces not found' you should compile with
 -vt -vu.

 The can not create object files means for example: disk full, no write
 permissions, output directory does not exist or output file is locked.
 Delete the old exe before compiling.

 Mattias
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


 
 ___
 Lazarus mailing list
 

Re: [Lazarus] TCombobox major failure :(

2008-07-28 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote:
 On Sun, 27 Jul 2008 10:22:03 -0300
 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote:

   
 BTW: the file gtkobject.inc seems unused. Initially i got confused
 after searching for the places where the info is freed.
 

 gtkobject.inc?
 AFAIR it was removed 9 months ago.
   

Somehow it still in my source tree.
Sorry for the false alarm

Luiz
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus